Dar*_*fle 4 package-management
当我sudo apt install python3-pip在 Ubuntu 16.04 上运行命令时出现这些错误
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-pip : Depends: python-pip-whl (= 8.1.1-2) but 8.1.1-2ubuntu0.4 is to be installed
Recommends: python3-dev (>= 3.2) but it is not going to be installed
Recommends: python3-wheel but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
Run Code Online (Sandbox Code Playgroud)
小智 8
只需删除python-pip-whl包并重试:
sudo apt-get remove python-pip-whl
Run Code Online (Sandbox Code Playgroud)
您的软件包已损坏,因此请使用以下步骤:
修复损坏的包:
sudo apt -f install
Run Code Online (Sandbox Code Playgroud)更新:
sudo apt update && sudo apt dist-upgrade
Run Code Online (Sandbox Code Playgroud)现在可以正常安装了:
sudo apt install python3-pip
Run Code Online (Sandbox Code Playgroud)检查是否已安装:
pip3 --version
Run Code Online (Sandbox Code Playgroud)那应该可以解决这个问题。
经过大量搜索,我终于能够通过简单地运行这些命令在我的 Ubuntu 16.04 机器上安装 pip3
sudo apt-get install python3-setuptools
sudo easy_install3 pip
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
23212 次 |
| 最近记录: |