解决视频提取照片报 No such file or directory: ‘ffprobe‘

本文介绍了解决在使用Python进行视频提取照片时遇到的'ffprobe'文件未找到错误的方法。作者尝试了安装ffprobe和ffmpeg但未能解决问题,最终通过安装ffmpeg成功解决了该问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

解决视频提取照片报  No such file or directory: 'ffprobe' ,

 File "/usr/local/lib/python3.5/dist-packages/ffmpy.py", line 95, in run
    stderr=stderr
  File "/usr/lib/python3.5/subprocess.py", line 947, in __init__
    restore_signals, start_new_session)
  File "/usr/lib/python3.5/subprocess.py", line 1551, in _execute_child
    raise child_exception_type(errno_num, err_msg)
FileNotFoundError: [Errno 2] No such file or directory: 'ffprobe'

先进行 pip install ffprobe  pip install ffmpeg 后 仍报

通过百度搜出来的没用上,最后通过Google

  apt-get update 

 apt-get install  ffmpeg   后 可正常提取