cmd = ['scons', '-c', 'SHARED=yes', 'STATIC=yes']
当我尝试执行 subprocess.Popen(cmd) 时,得到如下错误提示:
scons -c SHARED=yes STATIC=yes
Traceback (most recent call last):
File "setup.py", line 37, in <module>
if Popen(cmd).wait():
File "D:\Python27\lib\subprocess.py", line 711, in __init__
errread, errwrite)
File "D:\Python27\lib\subprocess.py", line 948, in _execute_child
startupinfo)
WindowsError: [Error 2] The system cannot find the file specified
我对此感到非常困惑,有没有人可以帮助我弄清楚?我只是 Python 的菜鸟,谢谢大家!