When I try to run any PyQt5 program from Eclipse, I got this error.
Failed to load platform plugin "windows". Available platforms are: windows, minimal
I've never encountered this problem with PyQt4 but with the new version.
I'm not able to run a program. From other questions here I know it happens with Qt C++ development and the solution is to copy some Qt dll files to executable program directory.
Do I need to do the same in Python development (PyQt5) too? Add those files to the directory, where my *.py files reside? Shouldn't this be managed by PyQt5 installation?
Thank you
In order to fix the “Application failed to start because no Qt platform plugin could be initialized” error, you should uninstall all recently installed applications and see if that solves your problem in normal mode.
The Plugin Directory In Qt, when an application starts, the application's executable directory is the base directory where Qt searches for plugins. For example, on Windows, if the application is in C:\Program Files\MyApp and it has a style plugin, Qt looks in C:\Program Files\MyApp\styles .
Qt is a cross-platform software that was designed to create graphical user interfaces and cross-platform applications on Windows, Linux, macOS, and Android.
i had a similar problem when compiling my code with cx_freeze
.
Copying the folder platforms from python installation directory into my built folder solved the problem. the "platforms" folder contains qminimal.dll
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With