首页
学习
活动
专区
圈层
工具
发布
社区首页 >专栏 >FileNotFoundError: [WinError 2] 系统找不到指定的文件

FileNotFoundError: [WinError 2] 系统找不到指定的文件

原创
作者头像
薇芯公重号 AI创造财富
发布2025-10-12 13:32:42
发布2025-10-12 13:32:42
4450
举报

C:\Users\Sam\Desktop\desktop\startup\workpython\ocr\venv\Scripts\python.exe C:/Users/Sam/Desktop/desktop/startup/workpython/ocr/nomp3ensentancestady.py

Traceback (most recent call last):

File "C:/Users/Sam/Desktop/desktop/startup/workpython/ocr/nomp3ensentancestady.py", line 129, in <module>

generate_video(s)

File "C:/Users/Sam/Desktop/desktop/startup/workpython/ocr/nomp3ensentancestady.py", line 82, in generate_video

audio_seg = AudioSegment.from_mp3(temp_file)

File "C:\Users\Sam\Desktop\desktop\startup\workpython\ocr\venv\lib\site-packages\pydub\audio_segment.py", line 796, in from_mp3

return cls.from_file(file, 'mp3', parameters=parameters)

File "C:\Users\Sam\Desktop\desktop\startup\workpython\ocr\venv\lib\site-packages\pydub\audio_segment.py", line 728, in from_file

info = mediainfo_json(orig_file, read_ahead_limit=read_ahead_limit)

File "C:\Users\Sam\Desktop\desktop\startup\workpython\ocr\venv\lib\site-packages\pydub\utils.py", line 274, in mediainfo_json

res = Popen(command, stdin=stdin_parameter, stdout=PIPE, stderr=PIPE)

File "C:\Users\Sam\AppData\Local\Programs\Python\Python38\lib\subprocess.py", line 854, in __init__

self._execute_child(args, executable, preexec_fn, close_fds,

File "C:\Users\Sam\AppData\Local\Programs\Python\Python38\lib\subprocess.py", line 1307, in _execute_child

hp, ht, pid, tid = _winapi.CreateProcess(executable, args,

FileNotFoundError: [WinError 2] 系统找不到指定的文件。

Process finished with exit code 1 不是代理网络的问题吧?

ffmpeg 在 Windows 下会把 -xxx 识别成 命令行参数,所以报 “Unrecognized option”

原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。

如有侵权,请联系 cloudcommunity@tencent.com 删除。

问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档