python - Cannot import QtCore or QtGui from PyQt4 -
i have found plenty of posts regarding issue, no answers work me.
problem:
trying run code:
from pyqt4 import qtcore, qtgui
error in return:
importerror: cannot import name qtcore
append path pyqt4 sys.path (c:\python27\lib\site-packages\pyqt4) , importing pyqt4 throws no errors. can see qtcore.pyd , qtgui.pyd in directory , directory has __init__.py file.
specs:
windows 7 x64
python v2.6.8
pyqt v4.10.4
if you're using python-2.6.x, have use installer earlier version of pyqt4. recent version available pyqt-4.10/qt-4.8.4, can downloaded here:
Comments
Post a Comment