无法在 Python 上下载 PyQt5

son*_*kci 5 python pyqt5

我正在使用 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
Run Code Online (Sandbox Code Playgroud)

可能是什么问题呢 ?

eyl*_*esc 3

您必须升级 pip,然后安装 pyqt5:

python3 -m pip install --upgrade pip 
python3 -m pip install pyqt5
Run Code Online (Sandbox Code Playgroud)