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

时间:2024-03-29 10:04:41

安装pip install pypiwin32时报错。ERROR: Could not install packages due to an EnvironmentError: [WinError 5] 拒绝访问。
ERROR: Could not install packages due to an EnvironmentError: [WinError 5] 拒绝访问。: ‘D:\Anaconda3\Lib\site-packages\win32\win32api.pyd’
Consider using the --user option or check the permissions.
在install 后面添加–user即可(报此类错误ERROR: Could not install packages due to an EnvironmentError: [WinError 5],都可用这种方法解决 )
ERROR: Could not install packages due to an EnvironmentError: [WinError 5] 拒绝访问。