I have created a Python program with a user interface and converted it to (exe) format. And when I run the program, PowerShell opens in the background behind the program's interface.
How can I run the program without PowerShell appearing? Can it run in the background?
You should use pythonw.exe
to run in the background.
If you already have the executable, try changing the extensions from .py
to .pyw
See this similar question: pythonw.exe or python.exe?
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.