gpt4 book ai didi

python - E : Package 'python-pip' has no installation candidate

转载 作者:行者123 更新时间:2023-12-03 09:53:45 25 4
gpt4 key购买 nike

$ sudo apt-get install python-pip
Reading package lists... Done
Building dependency tree
Reading state information... Done
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 和 pip3 都安装在 python 3 中
pip -V
pip 20.1.1 from /usr/lib/python3/dist-packages/pip (python 3.8)


pip3 -V
pip 20.1.1 from /usr/lib/python3/dist-packages/pip (python 3.8)
现在 不能 安装 pip
... 显示 以上 错误

最佳答案

如果你安装了 python(python2),那么你可以使用以下命令来安装 pip(for python2)。

curl https://bootstrap.pypa.io/pip/2.7/get-pip.py -o get-pip.py
python get-pip.py
现在您可以检查 pip2
pip2 --version
我希望这些会帮助你

关于python - E : Package 'python-pip' has no installation candidate,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64187581/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com