不确定为什么我得到这个错误,因为子进程check_output在python 2.7中运行?
ctmtest1-tctmsv80 [10] python del_jobs_main.py
sys.version_info(major=2, minor=7, micro=5, releaselevel='final', serial=0)
Traceback (most recent call last):
File "del_jobs_main.py", line 51, in <module>
sys.exit(main())
File "del_jobs_main.py", line 42, in main
p_call = do_sh_shell_command('env | grep machine')
File "del_jobs_main.py", line 33, in do_sh_shell_command
p = subprocess.check_ouput(string_command, shell=True, stdin=subprocess.PIPE,
AttributeError: 'module' object has no attribute 'check_ouput'
非常感谢任何关于这个奇怪错误的帮助