尝试在我的 debian-9 机器上安装 pip 时,我运行以下命令:
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
sudo python get-pip.py
这已经工作多年了,但现在出现以下错误:
Traceback (most recent call last):
File "get-pip.py", line 24226, in <module>
main()
File "get-pip.py", line 199, in main
bootstrap(tmpdir=tmpdir)
File "get-pip.py", line 82, in bootstrap
from pip._internal.cli.main import main as pip_entry_point
File "/tmp/tmpix3aMF/pip.zip/pip/_internal/cli/main.py", line 60
sys.stderr.write(f"ERROR: {exc}")
答案 0 :(得分:0)
我发现了一个解决方法。我必须改为运行以下命令:
sudo apt-get install python-pip