Mar-28-2019, 02:26 PM
Import PyQt5 works but:
Output:$ python
Python 2.7.15+ (default, Oct 2 2018, 22:12:08)
[GCC 8.2.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import PyQt5
>>> from PyQt5.QtWidgets import (QWidget, QLabel, QComboBox, QPushButton,
... QHBoxLayout, QVBoxLayout,
... QPlainTextEdit, QApplication, QSlider)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named sip
>>> from PyQt5.QtGui import (QIcon, QCursor)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named sip
>>> import sip
>>> from PyQt5.QtWidgets import (QWidget, QLabel, QComboBox, QPushButton,
... QHBoxLayout, QVBoxLayout,
... QPlainTextEdit, QApplication, QSlider)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: cannot import name QWidget
>>> from PyQt5.QtGui import (QIcon, QCursor)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: cannot import name QIcon
>>> import QIcon
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named QIcon