我使用 Pycharm,当尝试下载 pyqt5 包时,会出现以下错误。
Failed building wheel for PyQt5-sip
Running setup.py clean for PyQt5-sip
Failed to build PyQt5-sip
Could not build wheels for PyQt5-sip which use PEP 517 and cannot be installed directly
可能的问题是什么?
您需要先升级 pip,然后再安装 pyqt5:
python3 -m pip install --upgrade pip
python3 -m pip install pyqt5
python3 -m pip install --upgrade pip
,然后执行python3 -m pip install pyqt5
。 - eyllanesc