无法在 Debian 8 上安装 python3-pip

无法在 Debian 8 上安装 python3-pip

我想安装 python3-pip 但总是出现错误:

sudo apt-get install python3-pip

The following packages have unmet dependencies:
 python3-pip : Depends: python3-setuptools but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

sudo apt-get install python-setuptools


The following packages have unmet dependencies:
 python3-setuptools : Depends: python3-pkg-resources (= 5.5.1-1) but 33.1.1-1~bpo8+1 is to be installed
E: Unable to correct problems, you have held broken packages.

sudo apt-get install python3-pkg-resources


Reading package lists... Done
Building dependency tree
Reading state information... Done
python3-pkg-resources is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.

我已经更新/升级了,但仍然不起作用

答案1

已从python3-pkg-resourcesjessie-backports 中删除。

sudo apt purge python3-pkg-resources

它将main作为依赖项从存储库安装。

sudo apt install python3-pip

答案2

你可以尝试

  • sudo apt-get install python3-pkg-resources
  • sudo apt-get install -f python3-pip

也许这就是解决方案,但我真的不确定。

答案3

对于那些在对 Python3 进行了一些邪恶的(对于 Debian)删除(并且没有正确使用 apt-get remove python3)之后仍然坚持重新安装 Python3 的人,我提供了这个 100% 恢复步骤。

https://stackoverflow.com/a/58980420/4379130

相关内容