pip install --upgrade pip更新pip的时候遇到下面问题,就是没有权限
ERROR: Could not install packages due to an OSError: [WinError 5] 拒绝访问。: ‘C:\Users\AppData\Local\Temp\pip-uninstall-ndp0_724\pip.exe’
Consider using the--user
option or check the permissions.
解决方法:
将pip赋予user权限,输入下面的命令:
pip install pip --user