Answer the question
In order to leave comments, you need to log in
How to run a Python program in the background?
I want to create a Python exe file that when opened will not open a console. Is it possible to do so? If so, how.
Answer the question
In order to leave comments, you need to log in
Rename your script to .pyw
Python scripts (files with the extension .py) will be executed by python.exe by default. This executable opens a terminal, which stays open even if the program uses a GUI. If you do not want this to happen, use the extension .pyw which will cause the script to be executed by pythonw.exe by default (both executables are located in the top-level of your Python installation directory). This suppresses the terminal window on startup.
make the file executable and run.
PS Recently I was promoted to Admiral.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question