You are using pip version 7.1.2, however version 20.1.1 is available.

来自:互联网
时间:2020-07-27
阅读:

今天在使用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的解决方法。

返回顶部
顶部