Python Forum
[PyQt] I get the error when I try to open the sample Why can pyqt5 installed
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[PyQt] I get the error when I try to open the sample Why can pyqt5 installed
#1
Traceback (most recent call last):
File "C:\Python35\Lib\site-packages\PyQt5\examples\sql\connection.py", line 42, in <module>
from PyQt5.QtWidgets import QMessageBox
ModuleNotFoundError: No module named 'PyQt5'
>>>

I get the error when I try to open the sample
Why can
pyqt5 installed
Reply
#2
first you need to install PyQt5:
pip install PyQt5
Reply
#3
(Dec-25-2018, 10:32 AM)Larz60+ Wrote: first you need to install PyQt5:
pip install PyQt5

>>> pip install PyQt5
SyntaxError: invalid syntax
>>>
i get this answer
Reply
#4
from command line, not from interpreter.

import from interpreter
install from command line
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [Tkinter] filedialog, open a file error liketocode 4 3,232 Dec-07-2022, 10:51 PM
Last Post: liketocode
  PyQt5 not installed properly Leo_Red 4 3,087 Apr-10-2021, 08:35 AM
Last Post: Leo_Red
  PyQt5 Error Harshil 4 2,884 Aug-20-2020, 12:24 PM
Last Post: Axel_Erfurt
  PyQT5 : Unable to Create Another Dialog While One is Open iMuny 3 3,817 Jul-17-2019, 11:40 AM
Last Post: iMuny
  Huge code problems (buttons(PyQt5),PyQt5 Threads, Windows etc) ZenWoR 0 2,785 Apr-06-2019, 11:15 PM
Last Post: ZenWoR
  [PyQt] PyQT5: Open QFiledialog in a Dialog which was create in qt designer nieselfriem 4 21,407 Apr-30-2017, 07:40 PM
Last Post: volcano63

Forum Jump:

User Panel Messages

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