Search code examples
pythonpython-3.xwindowspyinstallerexecutable

Pyinstaller .exe works from terminal but not by double-clicking -> flashing console window


When I run the .exe from my project folder from terminal with dist\app\app.exe it runs fine, I can see my output in terminal etc.

However, with double-clicking the .exe I just get a flashing terminal window.

Does anyone have an idea or a clue?


Solution

  • By inspiration of the following post: PyInstaller .exe file does nothing I tried using --noupx in my installer command, and this lets me app run by double-clicking while having a terminal window on the background (which I am fine with for now).