简体   繁体   English

无法在 Python 上下载 PyQt5

[英]Can't Download PyQt5 on Python

I'm using Pycharm and when i try to download pyqt5 package, I'm getting an error like this.我正在使用 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

What could be the problem ?可能是什么问题呢 ?

You have to upgrade pip and then install pyqt5:你必须升级pip然后安装pyqt5:

python3 -m pip install --upgrade pip 
python3 -m pip install pyqt5
pip install PyQt5
Collecting PyQt5
  Using cached PyQt5-5.15.7-cp37-abi3-win_amd64.whl (6.8 MB)
Collecting PyQt5-sip<13,>=12.11
  Using cached PyQt5_sip-12.11.0-cp39-cp39-win_amd64.whl (78 kB)
Collecting PyQt5-Qt5>=5.15.0
  Using cached PyQt5_Qt5-5.15.2-py3-none-win_amd64.whl (50.1 MB)
ERROR: THESE PACKAGES DO NOT MATCH THE HASHES FROM THE REQUIREMENTS FILE. If you have updated the package versions, please update the hashes. Otherwise, examine the package contents carefully; someone may have tampered with them.
    PyQt5-Qt5>=5.15.0 from https://files.pythonhosted.org/packages/37/97/5d3b222b924fa2ed4c2488925155cd0b03fd5d09ee1cfcf7c553c11c9f66/PyQt5_Qt5-5.15.2-py3-none-win_amd64.whl#sha256=750b78e4dba6bdf1607febedc08738e318ea09e9b10aea9ff0d73073f11f6962 (from PyQt5):
        Expected sha256 750b78e4dba6bdf1607febedc08738e318ea09e9b10aea9ff0d73073f11f6962
             Got        d84a3d9919362f028db7225d1c2448234b5296bfc4f1a67edce20055745d3f5b

How Can i download Pyqt5?我如何下载 Pyqt5? I upgraded my pip, laptop, but nothing worked!我升级了我的点子,笔记本电脑,但没有任何效果! Please help me.请帮我。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM