解决ERROR: Could not install packages due to an EnvironmentError: [WinError 5] 拒绝访问

解决ERROR: Could not install packages due to an EnvironmentError: [WinError 5] 拒绝访问。: ‘d:\python_envs\env01\scripts\pip.exe’ Consider using the --user option or check the permissions.

解决 ModuleNotFoundError: No module named ‘pip’

  1. 升级pip遇到的错误
    ERROR: Could not install packages due to an EnvironmentError: [WinError 5] 拒绝访问。: ‘d:\python_envs\env01\scripts\pip.exe’
    Consider using the --user option or check the permissions.

解决ERROR: Could not install packages due to an EnvironmentError: [WinError 5] 拒绝访问_第1张图片
2. 报错之后 pip 就不管用了
在这里插入图片描述
3. 输入下面语句修复pip

python -m ensurepip

然后再升级pip就好了

python -m pip install --upgrade pip

解决ERROR: Could not install packages due to an EnvironmentError: [WinError 5] 拒绝访问_第2张图片

你可能感兴趣的:(系统检测,python,django,json)