欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  IT编程

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

程序员文章站 2022-03-03 21:18:49
问题起因安装库失败,并且报错:You are using pip version 19.3.1; however, version 20.1.1 is availablepip需要升级,但搜索了网上现存的一些方法,未果。在尝试卸载pip重装后发现easy_install命令失效后,经历波折,发现下面命令解决问题pip从19.3升级20.1比较方便:问题解决:①卸载PIP的命令:python -m pip uninstall pip②重装PIP的命令:easy_inatall pip//打开你的...

问题起因

安装库失败,并且报错: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://www.cnblogs.com/burz/p/9099281.html

本文地址:https://blog.csdn.net/weixin_40289902/article/details/107646519

相关标签: python pip