import pydub
from pydub import AudioSegment
readaudio=AudioSegment.from_mp3(r"C:\Users\Administrator\Desktop\hellohello.mp4")
运行AudioSegment.from_mp3的时候出错
如下
Traceback (most recent call last):
File "<ipython-input-2-234c77f07437>", line 3, in <module>
readaudio=AudioSegment.from_mp3(r"C:\Users\Administrator\Desktop\hellohello.mp4")
File "D:\ProgramData\Anaconda3\lib\site-packages\pydub\audio_segment.py", line 796, in from_mp3
return cls.from_file(file, 'mp3', parameters=parameters)
File "D:\ProgramData\Anaconda3\lib\site-packages\pydub\audio_segment.py", line 728, in from_file
info = mediainfo_json(orig_file, read_ahead_limit=read_ahead_limit)
File "D:\ProgramData\Anaconda3\lib\site-packages\pydub\utils.py", line 274, in mediainfo_json
res = Popen(command, stdin=stdin_parameter, stdout=PIPE, stderr=PIPE)
File "D:\ProgramData\Anaconda3\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 105, in __init__
super(SubprocessPopen, self).__init__(*args, **kwargs)
File "D:\ProgramData\Anaconda3\lib\subprocess.py", line 854, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "D:\ProgramData\Anaconda3\lib\subprocess.py", line 1307, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] 系统找不到指定的文件。