cmd在执行python get-pip.py报错DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality. Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple c:\users\wr_32\appdata\local\temp\tmpzfw3yh\pip.zip\pip\_vendor\urllib3\util\ssl_.py:164: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
时间: 2024-04-27 12:22:34 浏览: 132
解决python升级引起的pip执行错误的问题
这个错误提示是因为您使用的 Python 版本过低(Python 2.7 已经不再维护),建议升级到 Python 3.x 版本。在升级之前,建议先卸载 Python 2.7,确保新安装的 Python 3.x 版本不会与旧版本发生冲突。此外,您还可以尝试使用以下命令进行安装:
```
python3 get-pip.py
```
这将使用 Python 3.x 版本安装 pip。另外,关于 SSL 警告的问题,可以参考提示中提供的链接,升级 urllib3 库或升级 Python 版本即可解决。
阅读全文