简体   繁体   中英

installing PyQt 5 on windows 7 with python 3.4

I wanna install PyQt5 on windows by pip but rise me this error:

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)

and when i try to install sip via pip raise me this error:

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

what can i do?

You can use pip to install SIP and then pyQt5.

pip install SIP

But in order to be able to do that you need python 3.5 and its better to use virtualenv to not mess with core installation/change version.

Then you can try installing PyQt5.

pip install pyqt5
  • Make sure you have the latest python installed (or at least v3.5)
  • Make sure your new python install is being used from your path instead of the old one ( python --version )
  • pip3 install PyQt5 should then successfully install SIP and PyQt5 for you

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