簡體   English   中英

使用python 3.4在Windows 7上安裝PyQt 5

[英]installing PyQt 5 on windows 7 with python 3.4

我想通過pip在Windows上安裝PyQt5但是讓我犯這個錯誤:

pip install PyQt5
Collecting PyQt5
  Using cached PyQt5-5.7.1-5.7.1-cp34.cp35.cp36.cp37-none-win32.whl
Collecting sip>=4.19 (from PyQt5)
  Could not find a version that satisfies the requirement sip>=4.19 (from PyQt5)
 (from versions: )
No matching distribution found for sip>=4.19 (from PyQt5)

當我嘗試通過pip安裝sip時提出我這個錯誤:

Could not find a version that satisfies the requirement SIP (from versions: )
No matching distribution found for SIP

我能做什么?

您可以使用pip安裝SIP,然后使用pyQt5。

pip install SIP

但是為了能夠做到這一點,你需要python 3.5,並且更好地使用virtualenv來解決核心安裝/更改版本。

然后你可以嘗試安裝PyQt5。

pip install pyqt5
  • 確保安裝了最新的python(或至少v3.5)
  • 確保你的新python安裝正在使用你的路徑而不是舊路徑( python --version
  • pip3 install PyQt5然后應該成功安裝SIP和PyQt5

暫無
暫無

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

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