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

在安装包时报错:

WARNING: You are using pip version 21.1.2; however, version 21.3.1 is available.
You should consider upgrading via the '/home/yj/桌面/LoveDA-master/Semantic_Segmentation/venv/bin/python -m pip install --upgradeip' command.

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

原因是因为pip版本过低导致,所以只需要升级pip即可

我使用了pip install  --upgrade pip

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

可以看到提示安装了新版本并卸载了旧版本,可以通过 pip show pip 命令来查看当前版本.

然后就可以正常安装第三方库了~

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