Could not install packages due to an EnvironmentError: [WinError 5] 拒绝访问。2019-09-07

今天安装pyqt5遇到一个问题:Could not install packages due to an EnvironmentError: [WinError 5] 拒绝访问。


错误视图

后来发现错误给出了提示,只需要在命令行里面添加 --user就可以了

比如之前的命令是:pip install pyqt5

修改后的命令是:pip install --user pyqt5


以后只要遇到这种错误,都是因为权限不足的问题,只要在命令行里添加 --user就行了

你可能感兴趣的:(Could not install packages due to an EnvironmentError: [WinError 5] 拒绝访问。2019-09-07)