安装pip时权限被拒绝获取pip.py

2024-09-30 20:26:40 发布

您现在位置:Python中文网/ 问答频道 /正文

操作系统:Windows Server 2012 R2 Python:3.7.4

使用以下任何方法安装pip时:

在线安装:

python get-pip.py

用户安装:

^{pr2}$

离线安装:(pip和wheel包放在'd:\python374\packages'中)

python get-pip.py --no-index --find-links=d:\python374\packages

全部返回相同的权限被拒绝错误:

ERROR: Could not install packages due to an EnvironmentError: 
[Errno 13] Permission denied: 'C:\\Users\\xxxx\\AppData\\Local\\Temp\\2\\pip-install-8ecxsaac\\pip\\pip/_vendor/distlib/w64.exe'
Check the permissions.

我已经用管理员帐户安装了pip。在

有什么办法解决这个问题吗?在


Tags: installpip方法no用户pygetserver