每当我尝试安装任何软件包时,pip都会失败

编程入门 行业动态 更新时间:2024-10-28 04:21:20
本文介绍了每当我尝试安装任何软件包时,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都会失败

本文发布于:2023-07-04 02:03:45,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1015679.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:都会   软件包   每当我   pip

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!