我正在尝试使用 Popen 运行“RepoInitCmd”,如下所示并遇到以下错误..可以提供有关错误的输入吗?
import subprocess
Branch_Name='ab_mr2'
RepoInitCmd = 'repo init -u git://git.company.com/platform/manifest.git -b ' + Branch_Name
proc = subprocess.Popen([RepoInitCmd], stderr=subprocess.PIPE)
out, error = proc.communicate()
错误:-
File "test.py", line 4, in <module>
proc = subprocess.Popen([RepoInitCmd], stderr=subprocess.PIPE)
File "/usr/lib/python2.7/subprocess.py", line 679, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1249, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory