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.youkuaiyun.com/hardhard123/article/details/113251805
本文介绍了获取pip脚本的URL已变更,并提供了新的下载地址:https://bootstrap.pypa.io/pip/3.5/get-pip.py。对于使用Python2.7的环境,需执行`python get-pip.py`进行安装。此更改旨在简化脚本更新流程并提升pip对Python版本的支持。执行`pip --version`验证安装成功。
2086

被折叠的 条评论
为什么被折叠?



