解决Could not install packages due to an EnvironmentError: [WinError 5] 拒绝访问。(win10下升级pip)

一、问题描述

在dos下升级pip时,报错如下:

“Could not install packages due to an EnvironmentError: [WinError 5] 拒绝访问。: 'c:\\program files\\python37\\lib\\site-packages\\pip-10.0.1.dist-info\\entry_points.txt'
Consider using the `--user` option or check the permissions.”

 

二、问题分析

解决Could not install packages due to an EnvironmentError: [WinError 5] 拒绝访问。(win10下升级pip)

 

三、解决步骤

python -m pip install --user  --upgrade pip

解决Could not install packages due to an EnvironmentError: [WinError 5] 拒绝访问。(win10下升级pip)

 

推荐阅读:

python的pip10.1版本出现了安装包时的错误Could not install packages due to anEnvironmentError: [WinError 5] 拒绝访问