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

核能气质少年 提交于 2020-03-16 20:36:57

安装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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!