Category Archives: Python

Created EXE with Python program hide the black window

Created EXE of python program with pyinstaller. I generated exe with the following command :

pyinstaller --onefile

When i open the program it will open two windows one is command shell or other my GUI windows like shown below:

In some cases we need not the Command prompt behind this. so we can override the black window with following commands:

pyinstaller --onefile --noconsole

After creating this we did not see two windows open only GUI window will work for me.