you are using pip version 7.1.2, however version 20.1.1 is available.-kb88凯时官网登录

时间:2020-07-27
阅读:
免费资源网 - https://freexyz.cn/

今天在使用python的pip安装request的模块时,在执行之后,却提示you are using pip version 7.1.2, however version 20.1.1 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 7.1.2; however, version 20.1.1 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.1.1-py2.py3-none-any.whl (1.4mb)
     |████████████████████████████████| 1.4mb 6.4kb/s
installing collected packages: pip
  found existing installation: pip 7.1.2
    uninstalling pip-7.1.2:
      successfully uninstalled pip-7.1.2
successfully installed pip-20.1.1

3、查看是否升级成功:

d:\python> pip -v
pip 20.1.1 from d:\program files (x86)\python\python37\lib\site-packages\pip (python 3.7)

以上就是吾爱编程为大家介绍的关于you are using pip version 7.1.2; however, version 20.1.1 is available的解决方法。

免费资源网 - https://freexyz.cn/
网站地图