問題
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