I'm following a GUI aplication python course. And I can't handle with PyQt4.
I'm at manjaro linux, after some failed attempts, seems I have successfully installed PyQt4 and sis. But now, when trying to import, I can't.
When I run: import PyQt4 Works perfectly.
When I run: from PyQt4 import * Same, but I can't use the classes
But, when I run: from PyQt4 import QtGui, QtCore This doesn't work.
Message error:
Traceback (most recent call last):
File "ejemplo_GUI.pyw", line 2, in <module>
from PyQt4 import QtGui
ImportError: cannot import name 'QtGui' from 'PyQt4' (unknown location)
I attempted to do the istallation process again, but the same error.
Now, I download the data in site-package/PyQt4 from another source and I pasted it into the folder. It raises this errror:
>>> from PyQt4 import QtGui
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: cannot import name 'QtGui' from 'PyQt4' (/usr/lib/python3.7/site-packages/PyQt4/__init__.py)