作者:佚名 时间:2024-01-04 12:40:44 阅读:(35)
今天,当使用python的pip来安装请求模块时,执行后,它提示You are using pip version 19.2.3。然而,版本20.0.2是可用的。事实证明,pip版本太低了。接下来云梦编程将为您介绍pip的升级方法。有需要的朋友可以参考一下:
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.
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
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的解决方法,了解更多相关文章请关注云梦编程网!