I have a working Python 2.6 install and just installed the PyQt4 built for Python 2.6 (available at http://www.riverbankcomputing.co.uk/software/pyqt/download). When I try t
Did you verify that PyQt4 is for 32 or 64 bits?, I had the same problem I was using python 2.7.13 32 bit in Windows 10 and PyQt4 4.11 64 Bit, and changed PyQt4 for a 32 bit and it work immediately.
I had installed PyQt4 from a .whl
file (from the unofficial windows binaries) and got the same error.
I did what the answers suggested: checked that I installed the correct version, put my PyQt4 directory in the PATH
environment variable and had QtCore4.dll
and QtGui4.dll
, however none of these worked.
The answer was to try and open the designer.exe
program: it also had an error, but this time specified which DLL file was missing (it said msvcp140.dll is missing from your computer
)
I then downloaded it off dll-files.com and put it in the PyQt4 folder (C:\Python35\Lib\site-packages\PyQt4
) and it worked.
I hope this helps !
Are you sure you installed Python x64 ? By default, the Python website makes you download the x32 version, you need to go to this page to download the x64 version and then it will work. I had the same issue and it was fixed this way. https://www.python.org/downloads/windows/
Hope that will help someone. Cheers, Chris
I usage Linux ubuntu 14.04,firstly, Cannot import PyQt4.QtGui because access module PyQt4 not Available in group permission..
if call interpreter:shell>> python
not available module QtGui, but if i call interpreter sudo python
available QtGui.So, I solved this error , Change permisions folder package PyQt4 in my virtualenv,from property folder,change Owner and Group
.
Its works for me :)