python-pip 在 Debian Bullseye 上不可用

python-pip 在 Debian Bullseye 上不可用

如果我尝试使用 Python 2 安装 pip sudo apt-get install python-pip,它会抛出以下错误消息:

Package python-pip is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
  python3-pip

通过安装 pip 是解决此问题的唯一解决方案获取 pip.py或者还有其他解决方法吗?

答案1

Python 2 支持是因靶心而掉落。直接从上游下载应该仍然可以工作(至少,只要 Python 2 本身在 Bullseye 中可用......)。

另一个可能有效的解决方案(我没有尝试过这种特殊情况)是添加 Buster 存储库并python-pip从那里安装。一般情况下不建议这样做,但如果您愿意跟踪测试,那么它应该不会造成任何重大困难。

相关内容