问题起因
安装库失败,并且报错:You are using pip version 19.3.1; however, version 20.1.1 is available
pip需要升级,但搜索了网上现存的一些方法,未果。
在尝试卸载pip重装后发现easy_install命令失效后,经历波折,发现下面命令解决问题pip从19.3升级20.1比较方便:
问题解决:
①卸载PIP的命令:python -m pip uninstall pip
②重装PIP的命令:easy_inatall pip
//打开你的python目录输入
python -m ensurepip
//下方为完整反馈信息
D:\Python>python -m ensurepip
Looking in links: c:\Users\NaHS\AppData\Local\Temp\tmptzbt5nhe
Requirement already satisfied: setuptools in d:\python\lib\site-packages (42.0.2)
Collecting pip
Installing collected packages: pip
Successfully installed pip-19.2.3
③升级PIP的命令:python -m pip install --upgrade pip
//打开你的python目录输入
python -m pip install --upgrade pip
//下方为完整反馈信息
D:\Python>python -m pip install --upgrade pip
Collecting pip
Downloading https://files.pythonhosted.org/packages/43/84/23ed6a1796480a6f1a2d38f2802901d078266bda38388954d01d3f2e821d/pip-20.1.1-py2.py3-none-any.whl (1.5MB)
|████████████████████████████████| 1.5MB 10kB/s
Installing collected packages: pip
Found existing installation: pip 19.2.3
Uninstalling pip-19.2.3:
Successfully uninstalled pip-19.2.3
Successfully installed pip-20.1.1
本文地址:https://blog.csdn.net/weixin_40289902/article/details/107646519
希望与广大网友互动??
点此进行留言吧!