Pip 安装 PyQT5报错 ERROR: Could not install packages due to an OSError: [Errno 13] Permission denied

Pip安装PyQT5报错:

ERROR: Could not install packages due to an OSError: [Errno 13] Permission denied: 'D:\devtools\Python39\Lib\site-packages\PyQt5\Qt5\bin\d3dcompiler_47.dll'
Consider using the `--user` option or check the permissions.

解决办法:在pip前添加python -m,即将安装命令改为:python -m pip install pyqt5

 



我的回答