热线电话:13121318867

登录
2021-03-13 阅读量: 3703
File "D:\ProgramData\Anaconda3\lib\subprocess.py", line 1307, 系统找不到指定的文件。

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] 系统找不到指定的文件。


0.7956
1
关注作者
收藏
评论(1)

发表评论
1229784736
2021-05-15

你好请问你这个问题解决了么,可以分享下方法么

0.0000 0 0 回复
ermutuxia
2021-05-17

你也是用这个库的时候出的问题吗?pydub库

0.0000 0 0 回复