简体   繁体   中英

When running a python script from command line, PythonWin also runs. How can I avoid this?

I'm trying to run a script from the command line (command prompt). I type:

python.exe full_script_path.py parameters

And for some reason, PythonWin opens up. I have to close it for execution to finish. Unfortunately, this keeps me from being able to do multiple executions in a batch file.

What can I do to avoid PythonWin from opening?

I think you should launch pythonw.exe instead of plain python.exe , but I am not on a windows box right now, so I cannot test it.

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM