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 -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 

 

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

posted @ 2018-08-13 14:21  吾码的博客  阅读(10632)  评论(0编辑  收藏  举报