当前位置:首页 > Python >

You are using pip version 19.2.3; however, version 20.0.2 is available

发布时间:2020-03-22 21:20:46 作者:佚名 阅读:(1347)

今天在使用python的pip安装request的模块时,在执行之后,却提示You are using pip version 19.2.3; however, version 20.0.2 is available,原来是因为pip的版本太低了,接下来吾爱编程为大家介绍一下关于pip升级的方法,有需要的小伙伴可以参考一下:

1、错误提示:

D:\python> pip install request
Collecting request
  Downloading https://files.pythonhosted.org/packages/f1/27/7cbde262d854aedf217061a97020d66a63163c5c04e0ec02ff98c5d8f44e/request-2019.4.13.tar.gz
Collecting get
  Downloading https://files.pythonhosted.org/packages/3f/ef/bb46f77f7220ac1b7edba0c76d810c89fddb24ddd8c08f337b9b4a618db7/get-2019.4.13.tar.gz
Collecting post
  Downloading https://files.pythonhosted.org/packages/0f/05/bd79da5849ea6a92485ed7029ef97b1b75e55c26bc0ed3a7ec769af666f3/post-2019.4.13.tar.gz
Requirement already satisfied: setuptools in d:\program files (x86)\python\python37\lib\site-packages (from request) (40.6.2)
Collecting query_string
  Downloading https://files.pythonhosted.org/packages/12/3c/412a45daf5bea9b1d06d7de41787ec4168001dfa418db7ec8723356b119f/query-string-2019.4.13.tar.gz
Collecting public
  Downloading https://files.pythonhosted.org/packages/54/4d/b40004cc6c07665e48af22cfe1e631f219bf4282e15fa76a5b6364f6885c/public-2019.4.13.tar.gz
Installing collected packages: public, query-string, get, post, request
    Running setup.py install for public ... done
    Running setup.py install for query-string ... done
    Running setup.py install for get ... done
    Running setup.py install for post ... done
    Running setup.py install for request ... done
Successfully installed get-2019.4.13 post-2019.4.13 public-2019.4.13 query-string-2019.4.13 request-2019.4.13
WARNING: You are using pip version 19.2.3; however, version 20.0.2 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.

2、升级方法:

D:\python> python -m pip install --upgrade pip
Collecting pip
  Downloading https://files.pythonhosted.org/packages/54/0c/d01aa759fdc501a58f431eb594a17495f15b88da142ce14b5845662c13f3/pip-20.0.2-py2.py3-none-any.whl (1.4MB)
     |████████████████████████████████| 1.4MB 6.4kB/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.0.2

3、查看是否升级成功:

D:\python> pip -V
pip 20.0.2 from d:\program files (x86)\python\python37\lib\site-packages\pip (python 3.7)

以上就是吾爱编程为大家介绍的关于You are using pip version 19.2.3; however, version 20.0.2 is available的解决方法,了解更多相关文章请关注吾爱编程网!

欢迎分享转载→ You are using pip version 19.2.3; however, version 20.0.2 is available

© 2015-2019 - 吾爱编程网 版权所有 苏ICP备18033726号-1关于我们 - 网站声明 - 联系我们