python|怎么升级python的pip
报错提示:
WARNING: You are using pip version 19.1.1, however version 20.0.2 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
报错截图:
你使用的pip版本为19.1.1,版本20.0.2可用,需要升级pip版本;报错原因:
WARNING: You are using pip version 19.1.1, however version 20.0.2 is available.
你使用的pip版本为19.1.1,版本20.0.2可用,需要升级pip版本;
(如果pip的版本太老,很多包都无法安装)如上图,我是在安装pandas包出现的问题。
如何解决:如何升级pip?
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
你可以考虑用'python -m pip install --upgrade pip' 来升级pip
1、在命令操作窗口输入python -m pip install --upgrade pip
2、运行截图如下:
Successfully uninstalled pip-19.1.1(成功卸载旧版本:19.1.1)
Successfully installed pip-20.0.2(成功安装新版本:20.0.2)
3、查看目前的pip版本:在命令操作窗口输入pip show pip
如图所示,已经成功升级。