Hi there!
The URL you are using to fetch this script has changed, and this one will no
longer work. Please use get-pip.py from the following URL instead:
https://bootstrap.pypa.io/pip/3.5/get-pip.py
Sorry if this change causes any inconvenience for you!
We don't have a good mechanism to make more gradual changes here, and this
renaming is a part of an effort to make it easier to us to update these
scripts, when there's a pip release. It's also essential for improving how we
handle the `get-pip.py` scripts, when pip drops support for a Python minor
version.
There are no more renames/URL changes planned, and we don't expect that a need
would arise to do this again in the near future.
Thanks for understanding!
- Pradyun, on behalf of the volunteers who maintain pip.
复制 你自己信 中的网址
执行 wget + 网址
wget https://bootstrap.pypa.io/pip/3.5/get-pip.py
我环境里的python是2.7版本 所以执行 python get-pip.py
(而不是 python3 get-pip.py)
python get-pip.py
(图片里我加了“ .1 ”是因为文件就是有 “.1” 的,下载的时候你的文件名会显示)
再次输入 pip --version
将不会出现 sys.stderr.write(f"ERROR:{exc}")
参照: https://blog.csdn.net/hardhard123/article/details/113251805