Hello, I’ve been using Anaconda on Windows 10 for the past few months. However, today I tried launching the program and got the following error:
«This application failed to start because it could not find or load the Qt
platform plugin «windows in «».
Reinstalling the application may fix this problem.»
I read around about doing ‘conda update -all’ in cmd, however it didn’t
work for me, neither reinstalling Anaconda.
This seems to be a common problem, however I can’t seem to find a
straightforward solution online, what can I do? and please bear in mind that
I’m a newbie in Python.
Thanks in advance!
PD: After reading other topics in this forums, I think this information could be useful:
`C:\Users\JoséIgnacio>conda info
Current conda install:
platform : win-64
conda version : 4.2.13
conda is private : False
conda-env version : 4.2.13
conda-build version : 2.0.11
python version : 3.5.2.final.0
requests version : 2.12.1
root environment : C:\Users\JoséIgnacio\Anaconda3 (writable)
default environment : C:\Users\JoséIgnacio\Anaconda3
envs directories : C:\Users\JoséIgnacio\Anaconda3\envs
package cache : C:\Users\JoséIgnacio\Anaconda3\pkgs
channel URLs : https://repo.continuum.io/pkgs/free/win-64
https://repo.continuum.io/pkgs/free/noarch
https://repo.continuum.io/pkgs/pro/win-64
https://repo.continuum.io/pkgs/pro/noarch
https://repo.continuum.io/pkgs/msys2/win-64
https://repo.continuum.io/pkgs/msys2/noarch
config file : None
offline mode : False`
C:\Users\JoséIgnacio>qmake --version QMake version 3.0 Using Qt version 5.6.0 in C:/Users/JoséIgnacio/Anaconda3/Library/lib
C:\Users\JoséIgnacio>qmake -query QT_SYSROOT: QT_INSTALL_PREFIX:C:/Users/JoséIgnacio/Anaconda3/Library QT_INSTALL_ARCHDATA:C:/Users/JoséIgnacio/Anaconda3/Library QT_INSTALL_DATA:C:/Users/JoséIgnacio/Anaconda3/Library QT_INSTALL_DOCS:C:/Users/JoséIgnacio/Anaconda3/Library/doc QT_INSTALL_HEADERS:C:/Users/JoséIgnacio/Anaconda3/Library/include/qt QT_INSTALL_LIBS:C:/Users/JoséIgnacio/Anaconda3/Library/lib QT_INSTALL_LIBEXECS:C:/Users/JoséIgnacio/Anaconda3/Library/bin QT_INSTALL_BINS:C:/Users/JoséIgnacio/Anaconda3/Library/bin QT_INSTALL_TESTS:C:/Users/JoséIgnacio/Anaconda3/Library/tests QT_INSTALL_PLUGINS:C:/Users/JoséIgnacio/Anaconda3/Library/plugins QT_INSTALL_IMPORTS:C:/Users/JoséIgnacio/Anaconda3/Library/imports QT_INSTALL_QML:C:/Users/JoséIgnacio/Anaconda3/Library/qml QT_INSTALL_TRANSLATIONS:C:/Users/JoséIgnacio/Anaconda3/Library/translations QT_INSTALL_CONFIGURATION: QT_INSTALL_EXAMPLES:C:/Users/JoséIgnacio/Anaconda3/Library/examples QT_INSTALL_DEMOS:C:/Users/JoséIgnacio/Anaconda3/Library/examples QT_HOST_PREFIX:C:/Users/JoséIgnacio/Anaconda3/Library QT_HOST_DATA:C:/Users/JoséIgnacio/Anaconda3/Library QT_HOST_BINS:C:/Users/JoséIgnacio/Anaconda3/Library/bin QT_HOST_LIBS:C:/Users/JoséIgnacio/Anaconda3/Library/lib QMAKE_SPEC:win32-msvc2015 QMAKE_XSPEC:win32-msvc2015 QMAKE_VERSION:3.0 QT_VERSION:5.6.0
When launching certain apps on Windows, many users receive the “This application failed to start because no Qt platform plugin could be initialized” error. Don’t worry. This post of MiniTool explores several effective troubleshooting methods.
This Application Failed To Start Because No Qt Platform Plugin Could Be Initialized
According to user reports, the “this application failed to start because no Qt platform plugin could be initialized” error can occur with many apps such as OneDrive, Designer, Python, etc. This error often appears after installing a series of Windows updates. Here’s a true example from the answersmicrosoft.com forum:
After a series of recent Windows updates my Surface displays the following error when we log in OneDrive – This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem. I have searched the community and followed the responses given to others suffering the same fate but so far this has not resolved the issue. Looking to know what I should attempt next?https://answers.microsoft.com/en-us/windows/forum/all/application-failed-to-start-because-no-qt-platform/205e4259-dcbc-4d72-addb-8e7edb9663e9
Qt is a cross-platform software that was designed to create graphical user interfaces and cross-platform applications on Windows, Linux, macOS, and Android. However, when something went wrong with the Qt platform, you may receive the “This application failed to start because it could not find or load the Qt platform plugin Windows” error.
It seems like reinstalling the application may fix the error. However, some users encounter new errors when reinstalling the app. Don’t worry. Here we explore several effective troubleshooting methods. Let’s try.
How to Fix the “No Qt Platform Plugin Could Be Initialized” Error
After analyzing extensive user reports, we summarize the 6 applicable ways to fix the Qt platform plugin Windows error. You can try them in order until the error gets solved or choose the ones that work best for you.
Fix 1. Replace the Qt Files in the Destination
The first and proven method is to replace the Qt files in the destination folder. Here we take Python for example. To do so, follow the steps below:
Step 1. Press the Win + E keys to open the File Explorer, select This PC, type pyqt5_tools in the search box, and hit Enter.
Step 2. Right-click the pyqt5_tools folder once the search is complete and select Open folder location.
Step 3. Then go to the folder path “PyQt5 > Qt > plugins”, and then open the Plugin folder, right-click the platforms folder, and select Copy.
Step 4. Go to the site-packages folder that you initially opened and go to pyqt5_tools > Qt > bin.
Step 5. Right-click any empty space inside the bin directory and select paste. Then confirm it when you see the “Replace the files in the destination” message.
Now, you can relaunch the app and see if the “this application failed to start Qt platform Windows” message persists.
Fix 2. Perform a Clean Boot
One of the possible reasons for the “this application failed to start Qt platform Windows” error is third-party software conflicts. If you are not sure which app is causing the conflict, you can perform a clean boot (click on the Hyperlink to know the detailed steps). Once you find out the conflicting software, uninstall it and check if the error is fixed.
Fix 3. Check System File Corruption
Sometimes corrupted system files can trigger various errors and issues when running your apps such as the “no Qt platform plugin could be initialized” error. So, we recommend you run an SFC scan or DISM to check system files.
Step 1. Type cmd in the search box, and then right-click Command Prompt and select Run as administrator option.
Step 2. Type the sfc /scannow command in the elevated command prompt and hit Enter. After that, the SFC tool will scan and try to repair the corrupted system files automatically.
Step 3. If the SFC command was unable to repair corrupt system files, you can try running the following DISM commands:
- DISM /Online /Cleanup-Image /CheckHealth
- DISM /Online /Cleanup-Image /ScanHealth
- DISM /Online /Cleanup-Image /RestoreHealth
Fix 4. Reinstall the App
As the error message hints, reinstalling the application may help fix the problem. However, many users cannot uninstall the app smoothly. Don’t worry. We summarize the following 3 applicable ways to reinstall the app. (Here we take reinstalling OneDrive for example)
Uninstall OneDrive via the Run box:
Step 1, Press Win + R keys to open the Run dialog box, and then type the following command in it and hit Enter. Here make sure you replace the OneDriveSetup.exe path with the actual location.
%userprofile%\AppData\Local\Microsoft\OneDrive\Update\OneDriveSetup.exe
Step 2. Once uninstalled, go through the installation steps and restart your computer and check if the error gets fixed. If it fails to uninstall the application, you can try the following 2 methods.
Uninstall OneDrive via CMD:
Step 1. Type cmd in the Run dialog box and press Ctrl + Shift + Enter keys to open the elevated Command Prompt window.
Step 2. Type the following command and hit Enter to uninstall the app. If you are running on a 32-bit system, replace SysWOW64 with System32. This will force uninstalling the app.
- taskkill /f /im OneDrive.exe
- %SystemRoot%\SysWOW64\OneDriveSetup.exe /uninstall
Uninstall OneDrive from Settings:
Step 1. Right-click the Start menu at the bottom left and select Apps and Features.
Step 2. Inside the Applications window, search for OneDrive by name and click the Uninstall button.
Step 3. Then follow the on-screen prompts to complete the uninstallation. After that, you can reinstall the app and check if the error disappears.
Fix 5. Download the Update.xml File of the App
Some users reported that the error can be fixed by downloading the update.xml file of the app. If you can’t reinstall OneDrive via the above method, try this solution. Click here to download the OneDriveSetup.exe file, and run it to install the latest version of OneDrive.
Fix 6. Undo the Recent Changes
Many people reported that “This application failed to start because it could not find or load the Qt platform plugin Windows” error mainly occurs after installing a series of Windows updates. If this scenario applies to you, you can try performing a system restore or uninstalling these updates manually.
Step 1. Press the Win + I keys to open the Settings app, and then select Update & Security > View update history.
Step 2. Click on Uninstall updates, and then right-click the most recent update and select Uninstall. Then follow the on-screen prompts to complete the uninstallation. Then repeat the same procedure to uninstall other Windows updates.
@Scripteer
Веб дизайнер, интересуюсь python, знаю html,css +-
У меня появилась ошибка когда запускаю python файл, пж помогите не нужно кидать ссылку на форум просто скажите что сделать?
ОШИБКА
C:\Users\Андрей>»C:\Users\Андрей\Desktop\Currency Convertor\ui.py»
qt.qpa.plugin: Could not find the Qt platform plugin «windows» in «»
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
-
Вопрос задан
-
20194 просмотра
РЕШЕНИЕ: Найти папку где установлен python, перейти по пути C:\Users\Андрей\AppData\Local\Programs\Python\Python38\Lib\site-packages\PyQt5\Qt\plugins найти тут папку platforms и перенести в папку где находится python
Пригласить эксперта
-
Показать ещё
Загружается…
Минуточку внимания
I found the solution here on the qt forums.
My problem originated with setting the environment variables to get anaconda working.
QT_PLUGIN_PATH=c:\Anaconda3\Library\plugins\
But by setting this it breaks everything else. So for now I’ve just gotten rid of the path variable.
To check if you have the env variable set
1. Press <windows key> + R
2. Type «Control Panel»
3. Open system
4. Open advanced system settings on the left
5. Click on the environment variables button at the bottom
6. Browse through the user and system lists to see if QT_PLUGIN_PATH has been set.
[This thread is now closed by moderators due to inactivity. If you’re experiencing a similar behavior, feel free to start a new discussion in the Dropbox Community.]