安装python3 dev时出现的问题
这个问题已经折磨了我两天,如果没有安装python3 dev时出现的问题,python,linux,python-3.x,ubuntu,pip,Python,Linux,Python 3.x,Ubuntu,Pip,这个问题已经折磨了我两天,如果没有python3dev我就无法安装任何模块,有人能告诉我如何解决这个问题吗 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
python3dev
我就无法安装任何模块,有人能告诉我如何解决这个问题吗
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.
您可以尝试安装包libpython3-dev,而不是安装包python3-dev 我在这里回答了一个类似的问题:
我在Ubuntu桌面20.04上为自己找到了这样的解决方案:
转到“软件和更新”应用程序->然后将“下载自”服务器更改为“主服务器”。在此之后,关闭并关闭终端。然后sudo-apt-update-y&&sudo-apt-upgrade-y&&sudo-apt-autoremove&&sudo-apt-install-python3-dev-y您是否尝试过
sudo-apt-get-install-f
?apt-policy-python3-python3-dev输出是什么?这是apt
ubuntu/debian包管理器处于不一致状态的问题。这个问题属于askubuntu stackexchange网站。首先,在尝试apt-remove-python3
之后运行apt-update
,现在尝试安装python3-dev
。