Search code examples
pythonpowershellpyinstallerexe

.exe file opening Powershell Window


I made an .exe file using pyinstaller, but when I run the file it opens a PowerShell window as well. I was wondering if there is anyway I can get it to not open so I just have the python program open.

I haven't really tried anything as I don't really know what I'm doing.


Solution

  • When running pyinstaller be sure to use the --windowed argument. For example:

    pyinstaller –-onefile myFile.py –-windowed