Python Forum
PyQt5 Installation
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PyQt5 Installation
#1
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?
Reply


Messages In This Thread
PyQt5 Installation - by Clamantium - Feb-07-2020, 08:08 PM
RE: PyQt5 Installation - by Axel_Erfurt - Feb-07-2020, 08:48 PM
RE: PyQt5 Installation - by snippsat - Feb-07-2020, 09:19 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Huge code problems (buttons(PyQt5),PyQt5 Threads, Windows etc) ZenWoR 0 2,926 Apr-06-2019, 11:15 PM
Last Post: ZenWoR

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020