Answer the question
In order to leave comments, you need to log in
Why does the terminal throw an error ModuleNotFoundError: No module named 'PyQt5.QtWidgets'; 'PyQt5' is not a package?
import sys
from PyQt5.QtWidgets import QApplication, QWidget
if __name__ == '__main__':
app = QApplication(sys.argv)
w = QWidget()
w.resize(800, 600)
w.move(300, 300)
w.setWindowTitle('Приложение')
w.show()
sys.exit(app.exec_())
from PyQt5.QtWidgets import QApplication, QWidget
ModuleNotFoundError: No module named 'PyQt5.QtWidgets'; 'PyQt5' is not a package
Answer the question
In order to leave comments, you need to log in
The terminal screams that there are no such modules called 'PyQt5.QtWidgets'; 'PyQt5.
Maybe you mistyped the title?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question