python卸载pip重新安装_pip的卸载、重装、升级(from pip19.3 to pip20.1)

问题起因

安装库失败,并且报错: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 -

你可能感兴趣的:(python卸载pip重新安装)