Pycharm 中You are using pip version 10.0.1, however version 18.1 is available. You should consider upgrading via the 'python -m pip install --upgrade pip' command.

时间:2023-03-09 01:38:46
Pycharm 中You are using pip version 10.0.1, however version 18.1 is available. You should consider upgrading via the 'python -m pip install --upgrade pip' command.

今天运行程序的时候出现了:

You are using pip version 10.0.1, however version 18.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.

对于很少用python的我,瞬间蒙了,尝试了很多方法之后才解决。希望分享给大家,我的解决方法吧

You are using pip version 10.0.1, however version 18.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.

说明已经更新了,或者说pycharm认为它已经更新了,但是由于一些问题,其实并不是真正的更新了。

提醒一下大家,更新的时候最好使用命令行操作。

我使用命令行输入python -m pip install --upgrade pip之后,显示的是:

Pycharm 中You are using pip version 10.0.1, however version 18.1 is available. You should consider upgrading via the 'python -m pip install --upgrade pip' command.

也就是说已经更新了,可以在这个路径下找到,然后可以把site-packages(18.1)这个给删掉,用命令行重新安装:

Pycharm 中You are using pip version 10.0.1, however version 18.1 is available. You should consider upgrading via the 'python -m pip install --upgrade pip' command.

安装成功了,这样就可以运行啦!

不过有时候用命令行安装可能会出现权限不够,最好是用管理员身份运行。