exe does not find dlls using pyinstaller with pyqt
问题 When I use pyinstaller --windowed main.py on my program I get the following error when I run the resulting executable main.exe : This application failed to start because it could not find or load the Qt platform plugin "windows" in "". Reinstalling the application may fix the problem. The folder structure looks like this: main ├── PyQt5 | └── Qt | └── plugins | ├── iconengines | ├── imageformats | ├── platforms | └── printsupport ├── main.exe └── ... The error disappears when I change it to: