安装时出现python包错误
我正在安装python和其他一些python包。我也犯了同样的错误。 给我推荐一些。我该怎么修理安装时出现python包错误,python,python-3.x,ubuntu,pip,installation,Python,Python 3.x,Ubuntu,Pip,Installation,我正在安装python和其他一些python包。我也犯了同样的错误。 给我推荐一些。我该怎么修理 palwesh@wg-palwesh:~$ sudo apt-get install python-pip Reading package lists... Done Building dependency tree Reading state information... Done Some packages could not be installed. This may mean
palwesh@wg-palwesh:~$ sudo apt-get install python-pip
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:
python-pip : Depends: python-pip-whl (= 9.0.1-2) but 9.0.1-2.3~ubuntu1.18.04.1 is to be installed
Recommends: python-all-dev (>= 2.6) but it is not going to be installed
Recommends: python-setuptools but it is not going to be installed
Recommends: python-wheel but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
palwesh@wg-palwesh:~$
首先尝试
sudo apt get update
,以确保您的包裹列表是最新的
“无法纠正问题,您持有损坏的软件包。”表示您已使用Apt的保留功能阻止软件包更新。(apt mark showhold
向您显示保留的包,apt mark unhold
允许您删除相关保留。)