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 --upgra

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 --upgra

今天執行程式的時候出現了:

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之後,顯示的是:

也就是說已經更新了,可以在這個路徑下找到,然後可以把site-packages(18.1)這個給刪掉,用命令列重新安裝:

安裝成功了,這樣就可以執行啦!

不過有時候用命令列安裝可能會出現許可權不夠,最好是用管理員身份執行。