ModuleNotFoundError: No module named 'PyQt5'
See original GitHub issueIssue Report Checklist
- Searched the issues page for similar reports
- Read the relevant sections of the Spyder Troubleshooting Guide and followed its advice
- Reproduced the issue after updating with
conda update spyder
(orpip
, if not using Anaconda) - Could not reproduce inside
jupyter qtconsole
(if console-related) - Tried basic troubleshooting (if a bug/error)
- Restarted Spyder
- Reset preferences with
spyder --reset
- Reinstalled the latest version of Anaconda
- Tried the other applicable steps from the Troubleshooting Guide
- Completed the Problem Description, Steps to Reproduce and Version sections below
Problem Description
ModuleNotFoundError: No module named โPyQt5โ while import form command prompt
What steps reproduce the problem?
open command prompt in windows cmd
- type python
- from PyQt import QtCore
- ModuleNotFoundError: No module named โPyQt5โ i got this error
What is the expected output? What do you see instead?
Paste Traceback/Error Below (if applicable)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'PyQt5'
Versions
- Spyder version:
- Python version: python3.6
- Qt version:
- PyQt version: PyQt5
- Operating System name/version: windows 10
Dependencies
Issue Analytics
- State:
- Created 5 years ago
- Comments:9 (5 by maintainers)
Top Results From Across the Web
ModuleNotFoundError: No module named 'PyQt5' in Python
The Python "ModuleNotFoundError: No module named 'PyQt5'" occurs when we forget to install the PyQt5 module before importing it or installย ...
Read more >ImportError: No module named PytQt5 - Stack Overflow
It may caused by different python version, check which version of python you are using, for me the global version was 2.7 and...
Read more >Solved "ModuleNotFoundError: No module named PyQt5"
While the above error could occur due to any reason but most of the time it is basically due to missing PyQt5 python...
Read more >ModuleNotFoundError: No module named 'PyQt5.Qt.qml'
Run PyCharm and create a new python project; Install PyQt5 package on project interpreter; Wait when skeleton generating will be finished; Open idea.logย ......
Read more >Python Import Error Module Not Found Error - YouTube
Python Import Error Module Not Found Error : No Module Named PyQt5 In Ubuntu LinuxPyQT5 is GUI Widget Toolkit and python interface for...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Please run
or
depending on how you installed Spyder
๊ฐ์ฌํฉ๋๋ค Visual studio code์์ ์ค๋ฅ๊ฐ ์๊ฒจ ๋๋๋์๋๋ฐ ๊ฐ์ํ๊ฒฝ์์ ์ค์น์๋ ๋ชจ๋๋๋ฌธ์ ๋ฌธ์ ๊ฐ ์์๋ค๋๊ฒ์ ์ด์ ์์์ต๋๋ค. ์๋ ๋ชจ๋์ pip install <๋ชจ๋>๋ก ์ค์นํ๋ ์ ์๋ ํฉ๋๋ค