赞
踩
当我使用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
python.exe -m pip install --upgrade pip --user
然后有一些警告,-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)
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。