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 exportimport.py

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 exportimport.py

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

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.