Popen 给出“找不到文件”错误(Windows/Python)

Gab*_*lli 2 python windows popen

我试图通过subprocess.Popen运行控制台命令,每当我运行它时,即使运行 echo 命令,我也会收到 Windows“文件未找到”错误。我还在使用 thread 模块创建的线程中使用 Popen。这是问题所在吗?

wal*_*lyk 5

而不是
D:\Program Files\Steam\steamapps\terabytest\sourcesdk\bin\orangebox\bin\vbsp.exe,使用
D:/Program Files/Steam/steamapps/terabytest/sourcesdk/bin/orangebox/bin/vbsp.exe

这消除了引号内反斜杠的任何复杂性。