当前位置:   article > 正文

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

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.

在这里插入图片描述
2. 报错之后 pip 就不管用了
在这里插入图片描述
3. 输入下面语句修复pip

python -m ensurepip
  • 1

然后再升级pip就好了

python -m pip install --upgrade pip
  • 1

在这里插入图片描述

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/我家小花儿/article/detail/177813
推荐阅读
相关标签
  

闽ICP备14008679号