本文介绍了每当我尝试安装任何软件包时,pip都会失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的点子对任何包装都无效:
My pip didn't work for any package:
regex_3/_regex.c:46:20: fatal error: Python.h: No such file or directory #include "Python.h" ^ compilation terminated. error: command 'x86_64-linux-gnu-gcc' failed with exit status 1当我尝试通过
sudo apt-get install python3-dev我知道了:
Reading package lists... Done Building dependency tree Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation: The following packages have unmet dependencies: python3-dev : Depends: python3 (= 3.5.1-3) but 3.5.1-4 is to be installed Depends: libpython3-dev (= 3.5.1-3) but it is not going to be installed Depends: python3.5-dev (>= 3.5.1-2~) but it is not going to be installed E: Unable to correct problems, you have held broken packages.我无法安装任何这些依赖项!有人可以帮我吗?
and i can't install any of these dependencies!Could someone help me out.
推荐答案您应该可以通过以下方式查看保存的软件包的列表:
You should be able to see the list of held packages by:
apt-mark showhold然后通过
sudo apt-mark unhold <package name>在那之后,您应该能够删除有冲突的软件包,然后重新安装所有软件包.
After that, you should be able to remove the conflicting packages and then reinstall all.
尝试删除所有未满足的依赖项,然后重新安装.
Try removing all the unmet dependencies and then reinstalling.
更多推荐
每当我尝试安装任何软件包时,pip都会失败
发布评论