我是一个完全的新手,正在迈出编程和自动化测试的第一步。我安装了 Python 2.7.12 和 pip 版本 8.1.1。我想更新 pip 但许多用户提供的所有命令(在我搜索此主题时)都不起作用,例如:
python -m pip install --upgrade pip (doesn't recognize pip)
或
pip -V
当然,我犯了一个可怕的新手错误......你能帮帮我吗?提前致谢。
请您参考如下方法:
Python 现在不维护 2.7 版本; 提示:
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.
要解决这个问题,使用
easy_install pip==20.3.4
(使用的python版本:2.7.13)
2021 年 4 月 21 日
以管理员身份运行
