简体   繁体   中英

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.

  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:

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? I upgraded my pip, laptop, but nothing worked! Please help me.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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