我需要从 Python 脚本在后台调用和运行游戏。
我在用着:
import subprocess
subprocess.check_call([r"C:\GAMS\win64\24.4\gams.exe",r"F:\Otim\Interface\ElGr.gms"])
它给了我这个错误:
Traceback(最近一次调用最后):文件“F:/Otim/Interface/tent_backgroundgams.py”,第 91 行,在 subprocess.check_call([r"C:\GAMS\win64\24.4\gams.exe",r"F :\Otim\Interface\ElGrs.gms"]) 文件“C:\Python27\ArcGIS10.2\lib\subprocess.py”,第 511 行,在 check_call 中引发 CalledProcessError(retcode, cmd) CalledProcessError: Command '['C: \GAMS\win64\24.4\gams.exe', 'F:\Otim\Interface\ElGr. gms']' 返回非零退出状态 6
我该如何解决?