PyQt4 error not modulo?

1

I have a problem. I want to work with PyQt4, but when I import it I get an error:

from PyQt4 import QtGui

Traceback (most recent call last):
  File "<pyshell#0>", line 1, in <module>
  from PyQt4 import QtGui
ImportError: No module named PyQt4

I downloaded and installed PyQt4-4.11.4-gpl-Py2.7-Qt4.8.7-x64.exe , Windows 64-bit installer and the version of Python I have is 2.7.9

    
asked by Yeison Ordoñez 10.05.2016 в 17:33
source

1 answer

0

With

>>> import sys
>>> print(sys.path)

You can see which routes the packages are loading. Update your question with the output of this command, and search on your computer where PyQt4 has been installed.

With

>>> help('modules')

You can get a list of available packages.

Finally, if you have the opportunity to use PyQt5, you can install it using pip:

link

Using

> pip install PyQt5
    
answered by 11.05.2016 / 08:35
source