在pycharm中出现如下错误
[root@Huawei ~/python]# pip3 install subprocess Looking in indexes: http://mirrors.cloud.aliyuncs.com/pypi/simple/ Collecting subprocess Could not find a version that satisfies the requirement subprocess (from versions: ) No matching distribution found for subprocess You are using pip version 10.0.1, however version 20.2.2 is available. You should consider upgrading via the 'pip install --upgrade pip' command.
可见错误的大致意思为pip版本过低,建议升级新版本
有建议执行的语句,但是未能成功解决
最终解决方法如下
[root@Huawei ~/python]# python3 -m pip install -U pip Looking in indexes: http://mirrors.cloud.aliyuncs.com/pypi/simple/ Collecting pip Downloading http://mirrors.cloud.aliyuncs.com/pypi/packages/5a/4a/39400ff9b36e719bdf8f31c99fe1fa7842a42fa77432e584f707a5080063/pip-20.2.2-py2.py3-none-any.whl (1.5MB) 100% |████████████████████████████████| 1.5MB 91.0MB/s Installing collected packages: pip Found existing installation: pip 10.0.1 Uninstalling pip-10.0.1: Successfully uninstalled pip-10.0.1 Successfully installed pip-20.2.2
pip3升级完成
[root@Huawei ~/python]# pip3 -V pip 20.2.2 from /usr/local/lib/python3.7/site-packages/pip (python 3.7)
下载模块畅通无阻 amazing~~~