Python 更新pip报错:Could not install packages due to an EnvironmentError: [WinError 5] 拒绝访问

更多详情请移步至:http://www.51ma.top/?p=81
问题描述:
pip安装库文件时报错:You are using pip version 10.0.1, however version 18.0 is available.
You should consider upgrading via the ‘python -m pip install –upgrade pip’ command.
Python 更新pip报错:Could not install packages due to an EnvironmentError: [WinError 5] 拒绝访问_第1张图片
此时按照提示执行命令python -m pip install –upgrade pip
下载到最后报错Could not install packages due to an EnvironmentError: [WinError 5] 拒绝访问

解决办法:
更新指令中加上–user
python -m pip install –user –upgrade pip==18.0
这里写图片描述
最终查看是否更新完成
pip list
这里写图片描述

版权声明:本文为博主原创文章,未经博主允许不得转载。

你可能感兴趣的:(Python 更新pip报错:Could not install packages due to an EnvironmentError: [WinError 5] 拒绝访问)