Could not install packages due t
2019-09-25 本文已影响0人
盛夏的風
今天安装pyqt5遇到一个问题:Could not install packages due to an EnvironmentError: [WinError 5] 拒绝访问。

后来发现错误给出了提示,只需要在命令行里面添加 --user就可以了
比如之前的命令是:pip install pyqt5
修改后的命令是:pip install --user pyqt5

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