spyder: Spyder failed to start because no Qt platform plugin could be initialized.
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(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
Anaconda Navigator and Spyder fail to start. I’ve uninstalled and reinstalled as well as updating conda and all associated plugins but still encounter the issue.
What steps reproduce the problem?
- Download Anaconda
- Open Anaconda Navigator
What is the expected output? What do you see instead?
The program should start
Paste Traceback/Error Below (if applicable)
qt.qpa.plugin: Could not load the Qt platform plugin "windows" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: direct2d, minimal, offscreen, windows.
Versions
- Spyder version: 4.1.4
- Python version: 3.8.5
- Qt version: 5.9.7
- PyQt version: 5.9.2
- Operating System name/version: Windows 10
Dependencies
PASTE DEPENDENCIES HERE
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 15 (7 by maintainers)
Hi @ManPython Spyder uses PyQt5. Currently Spyder supports PyQt <5.16 . You can check the contraint that Spyder has for PyQt in the
setup.pyfile at: https://github.com/spyder-ide/spyder/blob/dc90e8fa1bb0559846f0e01639e6e43a59c385bc/setup.py#L230So I found the root of the problem. I did not have the most current version of Microsoft Visual C++ installed on my machine, the latest version I had was from 2013. Once I downloaded the most current version of Microsoft Visual C++, I was able to reinstall and everything seems to be functioning normally.