1

I'm using Python 2.7 (Spyder3) and I'm unable to import PyQt4? I have tried the following

pip install PyQt4

pip install python-qt4

conda install PyQt4

conda install python-qt4

Could not find a version that satisfies the requirement python_qt4 (from versi ons: ) No matching distribution found for python_qt4

Similar error for all None works

  • you should print the error you receive. – Ardit Sep 28 '17 at 10:27
  • Use the one by [Gohlke](http://www.lfd.uci.edu/~gohlke/pythonlibs/#pyqt4), I also had problems with pip. Or use a Python distribution like Anaconda, PyQt comes with it. – Michael H. Sep 28 '17 at 10:29
  • Possible duplicate of [How to install PyQt4 on Windows using pip?](https://stackoverflow.com/questions/22640640/how-to-install-pyqt4-on-windows-using-pip) – Carson Sep 28 '17 at 10:44
  • [github has the isuess](https://github.com/pypa/pip/issues/2157), you can know more about it, and the question has been asked before and already has an answer – Carson Sep 28 '17 at 10:47

3 Answers3

6

How to install PyQt4 on Windows using pip?

Download the right .whl file for your OS from http://www.lfd.uci.edu/~gohlke/pythonlibs/#pyqt4 And use pip install filename.whl

Hjalte J.
  • 87
  • 1
  • 8
1

you can download it from here and compile it

pip download isuess tell you, I think it can help you.

hopes to help you.

Carson
  • 152
  • 11
0

Error: PyQt4-4.11.4-cp27-cp27m-win_amd64.whl is not a supported wheel on this platform.

My system type is 64 bit, But to solve this error I have installed PyQt4 of 32 bit windows system, i.e PyQt4-4.11.4-cp27-cp27m-win32.whl - click here to see more versions.

output image

Kindly select appropriate version of PyQt4 according to your installed python version.

B-shan
  • 404
  • 1
  • 5
  • 14