Pyqt5 Gui - Exe Made With Pyinstaller Doesn't Open
I've got a GUI which runs perfectly fine when I execute it from the Anaconda Prompt. I get the following window as output: I have installed pyinstaller using pip, and have then ru
Solution 1:
To view the error messages associated with running your executable, run the .exe file from the command prompt: /path/to/app/dist/MyApp.exe
. This will allow you to more easily observe any errors that may exist after the app was bundled (rather than trying to grab a screenshot).
Your application is failing to launch because it cannot import the PyQt5 modules. You may add PyQt5 (or each of the PyQt5 modules that you are using) to the hiddenimports
list in the .spec file that was generated after you first bundled this application with PyInstaller and regenerating the executable. Alternatively, you could explicitly add PyQt5 to your .py file by adding import PyQt5
before from PyQt5.QtWidgets import *
Post a Comment for "Pyqt5 Gui - Exe Made With Pyinstaller Doesn't Open"