Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/308.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/azure/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
安装时出现python包错误_Python_Python 3.x_Ubuntu_Pip_Installation - Fatal编程技术网

安装时出现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

我正在安装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 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
允许您删除相关保留。)