python subprocess FileNotFoundError: [WinError 2] 系统找不到指定的文件。-解决办法
问题Traceback (most recent call last):File "rtmp.py", line 26, in <module>pipe = subprocess.Popen(command, shell=False, stdin=subprocess.PIPE)File "D:\software\developUtils\python\python3.7\lib\su
·
问题
Traceback (most recent call last):
File "rtmp.py", line 26, in <module>
pipe = subprocess.Popen(command, shell=False, stdin=subprocess.PIPE)
File "D:\software\developUtils\python\python3.7\lib\subprocess.py", line 756, in __init__
restore_signals, start_new_session)
File "D:\software\developUtils\python\python3.7\lib\subprocess.py", line 1155, in _execute_child
startupinfo)
FileNotFoundError: [WinError 2] 系统找不到指定的文件。
解决办法
- 在lib文件夹中找到subprocess.py
- 搜索class Popen(object):
- 将__init__中的shell=False修改为shell=True
更多推荐
已为社区贡献3条内容
所有评论(0)