簡體   English   中英

安裝時python包錯誤

[英]python package error in installation time

我正在安裝 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讓您刪除相關的保留。)

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM