升级pip命令:You are using pip version 19.2.3, however version 20.2.1 is available.

背景:

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

执行命令:

python -m pip install --upgrade pip

报错:

升级pip命令:You are using pip version 19.2.3, however version 20.2.1 is available._第1张图片

默认从国外的镜像源网址下载,所以网络不好

国内的镜像源地址:

清华:https://pypi.tuna.tsinghua.edu.cn/simple

阿里云:http://mirrors.aliyun.com/pypi/simple/

中国科技大学: https://pypi.mirrors.ustc.edu.cn/simple/

华中理工大学:http://pypi.hustunique.com/

山东理工大学:http://pypi.sdutlinux.org/

豆瓣:http://pypi.douban.com/simple/

执行命令:

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

成功升级:

升级pip命令:You are using pip version 19.2.3, however version 20.2.1 is available._第2张图片

你可能感兴趣的:(python,python,pip)