我想通过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
我能做什么?
答案 0 :(得分:1)
您可以使用pip安装SIP,然后使用pyQt5。
pip install SIP
但是为了能够做到这一点,你需要python 3.5,并且最好使用virtualenv来解决核心安装/更改版本。
然后你可以尝试安装PyQt5。
pip install pyqt5
答案 1 :(得分:0)
python --version
)pip3 install PyQt5
然后应该为您成功安装SIP和PyQt5