Hide the console of an .exe file created with PyInstaller

Matteo Secco picture Matteo Secco · Dec 13, 2016 · Viewed 26.1k times · Source

I want to make my program executable. I used TkInter to write the GUI, and I read somewhere that you have to save your file as .pyw to hide the console when the program is executed. The problem is that after making it an executable with PyInstaller, the console shows up again, even though the file converted was .pyw. How can I hide the console also in the .exe file?

Answer

Maurice Meyer picture Maurice Meyer · Dec 13, 2016

Did you try --windowed command line flag ?