python3 pip安装第三方库失败,WARNING: You are using pip version 21.2.3; however, version 21.3.1 is available.

项目场景:

使用Pycharm工具下载neutron代码,解决pip版本问题及Building wheels for collected packages: netifaces, setproctitle, Yappi报错问题


问题描述:

在安装neutron-lib时报错:
WARNING: You are using pip version 21.2.3; however, version 21.3.1 is available.
You should consider upgrading via the ‘E:\Programs\Python\Python310\python.exe -m pip install --upgrade pip’ command.

执行neutron-lib命令:pip install neutron-lib>=1.18.0
python3 pip安装第三方库失败,WARNING: You are using pip version 21.2.3; however, version 21.3.1 is available._第1张图片
python3 pip安装第三方库失败,WARNING: You are using pip version 21.2.3; however, version 21.3.1 is available._第2张图片

python3 pip安装第三方库失败,WARNING: You are using pip version 21.2.3; however, version 21.3.1 is available._第3张图片


问题1:原因分析及解决办法:

原因是因为pip版本过低导致,所以只需要升级pip即可
执行命令:python -m pip install -U pip
python3 pip安装第三方库失败,WARNING: You are using pip version 21.2.3; however, version 21.3.1 is available._第4张图片
可以看到提示安装了新版本并卸载了旧版本,可以通过 pip show pip 命令来查看当前版本
python3 pip安装第三方库失败,WARNING: You are using pip version 21.2.3; however, version 21.3.1 is available._第5张图片

你可能感兴趣的:(Python,python,ar,pycharm)