【AI学习笔记】AttributeError: module ‘ffmpeg‘ has no attribute ‘input‘

报错:

【AI学习笔记】AttributeError: module ‘ffmpeg‘ has no attribute ‘input‘_第1张图片

原因:

想要通过python调用ffmpeg库,但是发现报错,可能是没有正确安装ffmpeg库。

正确的ffmpeg库名称:ffmpeg-python。
误操作1:pip install ffmpeg
误操作2:pip install python-ffmpeg

解决方法

如果有以上误操作,则需要删除并重新安装正确的ffmpeg库。

如果误操作1,则删除命令:pip uninstall ffmpeg
如果误操作2,则删除命令:pip uninstall python-ffmpeg
正确安装ffmpeg库命令:pip install ffmpeg-python

成功安装!
【AI学习笔记】AttributeError: module ‘ffmpeg‘ has no attribute ‘input‘_第2张图片

你可能感兴趣的:(人工智能与大数据,ffmpeg,人工智能,学习)