簡體   English   中英

無法在 Python 上下載 PyQt5

[英]Can't Download PyQt5 on Python

我正在使用 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
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

我如何下載 Pyqt5? 我升級了我的點子,筆記本電腦,但沒有任何效果! 請幫我。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM