Install PyQt 5 on windows 7 using python 3.4

I want to install PyQt5 on windows by pip, but I will raise this error for me:

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?

+4
source share
2 answers

You can use pip to install SIP and then pyQt5.

pip install SIP

But in order to be able to do this, you need python 3.5 and it is better to use virtualenv so as not to get confused with the main version of the installation / change.

Then you can try installing PyQt5.

pip install pyqt5
+1
source
  • Make sure you have the latest python installed (or at least v3.5)
  • , python (python --version)
  • pip3 install PyQt5 SIP PyQt5
0

Source: https://habr.com/ru/post/1668804/


All Articles