在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~~~