[英]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.出于某种原因,PythonWin 打开了。 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?我该怎么做才能避免 PythonWin 打开?
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.我认为您应该启动
pythonw.exe
而不是普通的python.exe
,但我现在不在 windows 盒子上,所以我无法测试它。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.