Cannot import QtCore or QtGui from PyQt4
问题 I have found plenty of posts regarding this issue, but no answers that work for me. PROBLEM: I am trying to run this code: from PyQt4 import QtCore, QtGui I get this error in return: ImportError: cannot import name QtCore I append the path to PyQt4 to sys.path (C:\Python27\Lib\site-packages\PyQt4) and importing just PyQt4 throws no errors. I can see that QtCore.pyd and QtGui.pyd are in that directory and the directory has its __init__.py file. Specs: Windows 7 x64 python v2.6.8 PyQt v4.10.4