pip报错:WARNING: You are using pip version 21.2.4; however, version 21.3.1 is available.

问题:使用pip安装第三方模块报错,错误如下

WARNING: You are using pip version 21.2.4; however, version 21.3.1 is available.
You should consider upgrading via the 'C:\Program Files\Python39\python.exe -m pip install --upgrade pip' command.

如图所示:

WARNING: You are using pip version 21.2.4; however, version 21.3.1 is available.

这个警告就是提示你问题是什么,比如我的问题就是版本低了,要升级到21.3.1。

You should consider upgrading via the 'C:\Program Files\Python39\python.exe -m pip install --upgrade pip' command.

这行就是告诉你解决方法,通过 python -m pip install --upgrade pip 这个命令升级。

技巧:

可以通过 pip --version 来查看当前的版本

你可能感兴趣的:(使用Python遇到的问题,pycharm,ide,python)