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