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

原文地址:https://program-park.github.io/2021/06/24/python_7/

在安装clickhouse_driver时报错:
WARNING: You are using pip version 20.2.3; however, version 21.1.2 is available.
You should consider upgrading via the ‘c:\software\python3.9.2\python.exe -m pip install --upgrade pip’ command.
python3 pip安装第三方库失败,WARNING: You are using pip version 20.2.3; however, version 21.1.2 is available._第1张图片
原因是因为pip版本过低导致,所以只需要升级pip即可
百度上的 easy_install -U pip 命令已经弃用了,应该使用 python -m pip install -U pip 命令来升级
python3 pip安装第三方库失败,WARNING: You are using pip version 20.2.3; however, version 21.1.2 is available._第2张图片
可以看到提示安装了新版本并卸载了旧版本,可以通过 pip show pip 命令来查看当前版本
python3 pip安装第三方库失败,WARNING: You are using pip version 20.2.3; however, version 21.1.2 is available._第3张图片
然后就可以正常安装第三方库了


喜欢的小伙伴点个关注吧~~~

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