question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. Itย collects links to all the places you might be looking at while hunting down a tough bug.

And, if youโ€™re still stuck at the end, weโ€™re happy to hop on a call to see how we can help out.

ModuleNotFoundError: No module named 'PyQt5'

See original GitHub issue

Issue 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 (or pip, 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

  1. type python
  2. from PyQt import QtCore
  3. 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:closed
  • Created 5 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

18reactions
ccordoba12commented, Jun 4, 2018

Please run

pip install pyqt5

or

conda install pyqt=5

depending on how you installed Spyder

2reactions
JungChoungGyooncommented, Jan 30, 2020

๊ฐ์‚ฌํ•ฉ๋‹ˆ๋‹ค Visual studio code์—์„œ ์˜ค๋ฅ˜๊ฐ€ ์ƒ๊ฒจ ๋™๋™๋Œ€์—ˆ๋Š”๋ฐ ๊ฐ€์ƒํ™˜๊ฒฝ์—์„œ ์„ค์น˜์•ˆ๋œ ๋ชจ๋“ˆ๋•Œ๋ฌธ์— ๋ฌธ์ œ๊ฐ€ ์žˆ์—ˆ๋‹ค๋Š”๊ฒƒ์„ ์ด์ œ ์•Œ์•˜์Šต๋‹ˆ๋‹ค. ์—†๋Š” ๋ชจ๋“ˆ์„ pip install <๋ชจ๋“ˆ>๋กœ ์„ค์น˜ํ•˜๋‹ˆ ์ž˜ ์ž‘๋™ ํ•ฉ๋‹ˆ๋‹ค

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found