我运行对象检测脚本,并从子流程中获得Win错误2。我使用Python 3,但我修复了有关ttf文件的另一个错误。唯一剩下的就是子流程问题。
这是错误:
File "F:\grade pro\mid left fork yolo v3\real-time-audio.py", line 127, in <module>
tts = AudioSegment.from_mp3("tts.mp3")
File "F:\grade pro\python3\lib\site-packages\pydub\audio_segment.py", line 716, in from_mp3
return cls.from_file(file, 'mp3', parameters=parameters)
File "F:\grade pro\python3\lib\site-packages\pydub\audio_segment.py", line 697, in from_file
stdout=subprocess.PIPE, stderr=subprocess.PIPE)
File "F:\grade pro\python3\lib\subprocess.py", line 775, in __init__
restore_signals, start_new_session)
File "F:\grade pro\python3\lib\subprocess.py", line 1178, in _execute_child
startupinfo)
FileNotFoundError: [WinError 2] The system cannot find the file specified
每次我在Python 3中运行程序时,都会出现此错误。当我在Python 2中运行它时,出现numpy Not specified
错误。