Hide Console Window By An .exe File Executed By A .py Script
Solution 1:
you can use -w option in Pyinstaller.
for example,
pyinstaller -F -w FILENAME
you can learn more by excute
pyinstaller -h
I hope this can help you.
Solution 2:
Ok, i know im late.You can hide console window in pyinstaller by using --noconsole
Such as this:
python PyInstaller Filename.py--onefile--noconsole
This will hide console window and program will execute normally.
Solution 3:
If you are using a spec
file - add console=False
to your EXE(...)
command:
exe = EXE(pyz,
...
console=False )
Solution 4:
Thinking laterally, a solution might be to run your application from Windows' Task Scheduler application* and set the task to Run whether user is logged on or not
.
The Run whether user is logged on or not
setting causes the application to run invisibly, meaning no widnows, taskbar icons or console windows will be displayed on-screen.
* Task Scheduler is installed in Windows by default. Type its name into Cortana to run
Post a Comment for "Hide Console Window By An .exe File Executed By A .py Script"