Python pip安装时You are using pip version 9.0.1, however version 18.0 is available. You should consider upgrading via the 'python -m pip install --upgrade pip' command.

在我们安装第三方库的时候会在结尾出现如下两行内容

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

解决

按照上面提示,执行下面代码(windows下要用管理员权限,linux下使用sudo)

python -m pip install --upgrade pip

 这个命令会卸载之前的就旧版本然后下载新的版本,最后显示升级成功。结果失败,并且还是出现如上提示。

posted @ 2018-09-11 14:36  杨灏  阅读(742)  评论(0编辑  收藏  举报