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

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

上一篇:Ubuntu 之旅 —— 解决sudo: source: command not found错误


下一篇:ABP实战--分页排序