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

安装PyQt5的时候出现:ERROR: Could not install packages due to an EnvironmentError: [WinError 5] 拒绝访问

先说解决方案(加上 '--user'):

pip install --user PyQt5 -i https://pypi.tuna.tsinghua.edu.cn/simple

应该是系统权限的问题,所以弄了一个 '--user' 来指定安装对象。

再次安装的时候会出现(Warning):

WARNING: The scripts pylupdate5.exe, pyrcc5.exe and pyuic5.exe are installed in 'C:\Users\Administrator\AppData\Roaming\Python\Python37\Scripts' which is not on PATH.

可以将安装地址加入系统环境变量<我的电脑-->右键选择:属性-->高级系统设置-->环境变量-->path变量>

##

参考:

https://www.cnblogs.com/liuxu2019/p/11253911.html

https://blog.csdn.net/jacke121/article/details/86747921

猜你喜欢

转载自www.cnblogs.com/qi-yuan-008/p/12506127.html
今日推荐