You are using pip version 21.2.4; however, version 21.3.1 is available.升级最新版pip失败解决方案

在使用pip安装python第3方库的时候,遇到提示pip升级(如下所示)

 运用网上搜寻的输入如下指令的办法仍无法解决问题

python -m pip install --upgrade pip

依然是大片飘红并继续提示升级.

You are using pip version 21.2.4; however, version 21.3.1 is available.升级最新版pip失败解决方案_第1张图片

解决方案:

1.去PYPI上下载pip最新版的.whl文件

网址 Search results · PyPI

You are using pip version 21.2.4; however, version 21.3.1 is available.升级最新版pip失败解决方案_第2张图片

You are using pip version 21.2.4; however, version 21.3.1 is available.升级最新版pip失败解决方案_第3张图片

2.将该文件放在python安装目录中的Scripts文件夹下

You are using pip version 21.2.4; however, version 21.3.1 is available.升级最新版pip失败解决方案_第4张图片 3.然后在cmd中输入安装指令

pip install requests-2.26.0-py2.py3-none-any.whl

requests-2.26.0-py2.py3-none-any.whl为对应最新版pip文件名(如下)

You are using pip version 21.2.4; however, version 21.3.1 is available.升级最新版pip失败解决方案_第5张图片

 4.最新版pip安装成功

You are using pip version 21.2.4; however, version 21.3.1 is available.升级最新版pip失败解决方案_第6张图片

 接下来就可以正常使用pip的方法安装第3方库了。

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