当前位置:   article > 正文

升级pip出现拒绝访问_warning: the scripts pip.exe, pip3.11.exe, pip3.9.

warning: the scripts pip.exe, pip3.11.exe, pip3.9.exe and pip3.exe are insta

当我使用python -m pip install --upgrade pip在cmd和 anaconda3的Prompt中使用该命令时,均出现这个错误,我去有管理员权限的cmd用这个命令也没有用,但是看到报错的Consider using the --user option or check the permissions.于是在后面加上了–user,于是成功安装。
ERROR: Could not install packages due to an OSError: [WinError 5] 拒绝访问。: ‘C:\ProgramData\Anaconda3\Lib\site-packages\pip\init.py’
Consider using the --user option or check the permissions.

python -m pip install --upgrade pip
  • 1
python.exe -m pip install --upgrade pip --user
  • 1

然后有一些警告,-ornado这个是否之后都不能运行呢,之后有空再解决。
WARNING: The scripts pip.exe, pip3.10.exe, pip3.9.exe and pip3.exe are installed in ‘C:\Users\23934\AppData\Roaming\Python\Python39\Scripts’ which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Successfully installed pip-22.3.1
WARNING: Ignoring invalid distribution -ornado (c:\programdata\anaconda3\lib\site-packages)

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

闽ICP备14008679号