PIP更新问题丨You should consider upgrading via the 'python -m pip install —upgrade pip' command.

PIP问题


WARNING: You are using pip version 19.2.3, however version 20. 0. 2 is available.
You should consider upgrading via the ‘python -m pip install —upgrade pip’ command.


今天新人小白我准备安装老师布置的paddle库的时候,一直安装不上,总是出现这样的提示,截取部分如下。
PIP更新问题丨You should consider upgrading via the 'python -m pip install —upgrade pip' command._第1张图片
其中,有一行提示说我的pip版本太低,要更新,并给出了详细的命令。

WARNING: You are using pip version 19.2.3, however version 20. 0. 2 is available. 
You should consider upgrading via the 'python -m pip install —upgrade pip' command.

但是我按照这个命令去尝试更新pip,会发现总是在下载过程中出现错误,然后又会出现如上提示。

解决办法

我最后查了很多办法,比如把Python 3.8.1卸载安装Python 3.7.6,或者用别的办法重新安装pip,都不可以,最后这条命令起了作用。

python -m pip install --upgrade pip -i https://pypi.tuna.tsinghua.edu.cn/simple/

之后就会自动把旧的pip卸载然后安装新的,最后提示安装成功了。
PIP更新问题丨You should consider upgrading via the 'python -m pip install —upgrade pip' command._第2张图片
然后再安装paddle库。

python3 -m pip install paddlepaddle -i https://mirror.baidu.com/pypi/simple

你可能感兴趣的:(PIP更新问题丨You should consider upgrading via the 'python -m pip install —upgrade pip' command.)