Feb-07-2020, 08:08 PM
I am trying to teach myself to code in Python using various resources and want to create my first, very simple, desktop application. I have no coding experience and do not know any other languages. I have, as far as I can tell, loaded PyQt5 onto my Windows computer. I have Python version 3.7.
I began by setting up a basic structure for the code. Guided by one of my learning resources I input:
[Python]
from PyQt5.QtCore import *
from PyQt5.QtGui import *
import sys
app = QApplication(sys.argv)
dialog = QDialog()
dialog.show()
app.exec_()
[\Python]
The result is:
C:\Users\BLACKBURNT\PycharmProjects\Pluralsight\venv\Scripts\python.exe C:/Users/BLACKBURNT/PycharmProjects/Pluralsight/structure.py
Traceback (most recent call last):
File "C:/Users/BLACKBURNT/PycharmProjects/Pluralsight/structure.py", line 1, in <module>
from PyQt5.QtCore import *
ModuleNotFoundError: No module named 'PyQt5'
Process finished with exit code 1
I do not know what I have done wrong when installing PyQt5. Can anyone help me please?
I began by setting up a basic structure for the code. Guided by one of my learning resources I input:
[Python]
from PyQt5.QtCore import *
from PyQt5.QtGui import *
import sys
app = QApplication(sys.argv)
dialog = QDialog()
dialog.show()
app.exec_()
[\Python]
The result is:
C:\Users\BLACKBURNT\PycharmProjects\Pluralsight\venv\Scripts\python.exe C:/Users/BLACKBURNT/PycharmProjects/Pluralsight/structure.py
Traceback (most recent call last):
File "C:/Users/BLACKBURNT/PycharmProjects/Pluralsight/structure.py", line 1, in <module>
from PyQt5.QtCore import *
ModuleNotFoundError: No module named 'PyQt5'
Process finished with exit code 1
I do not know what I have done wrong when installing PyQt5. Can anyone help me please?