gpt4 book ai didi

python - 提高 NeedDownloadError ('Need ffmpeg exe. ' NeedDownloadError : Need ffmpeg exe)

转载 作者:太空狗 更新时间:2023-10-29 17:53:01 25 4
gpt4 key购买 nike

我正在尝试执行对非官方 Instagram API python 库的调用,在我修复了几个需要依赖项的错误之后,我被困在了这个错误上。

 File "C:\Users\Pablo\Desktop\txts_pys_phps_programacion\Instagram-API-python-master\InstagramAPI.py", line 15, in <module>
from moviepy.editor import VideoFileClip
File "C:\Python27\lib\site-packages\moviepy\editor.py", line 22, in <module>
from .video.io.VideoFileClip import VideoFileClip
File "C:\Python27\lib\site-packages\moviepy\video\io\VideoFileClip.py", line 3, in <module>
from moviepy.video.VideoClip import VideoClip
File "C:\Python27\lib\site-packages\moviepy\video\VideoClip.py", line 20, in <module>
from .io.ffmpeg_writer import ffmpeg_write_image, ffmpeg_write_video
File "C:\Python27\lib\site-packages\moviepy\video\io\ffmpeg_writer.py", line 15, in <module>
from moviepy.config import get_setting
File "C:\Python27\lib\site-packages\moviepy\config.py", line 38, in <module>
FFMPEG_BINARY = get_exe()
File "C:\Python27\lib\site-packages\imageio\plugins\ffmpeg.py", line 86, in get_exe
raise NeedDownloadError('Need ffmpeg exe. '
NeedDownloadError: Need ffmpeg exe. You can download it by calling:
imageio.plugins.ffmpeg.download()

最佳答案

错误消息中的最后两行提供了一个有值(value)的线索,我今天才安装了 moviepy,所以我记得有一个补救措施。

NeedDownloadError: Need ffmpeg exe. You can download it by calling:
imageio.plugins.ffmpeg.download()
  • 如有必要,首先 (sudo) pip install imageio
  • 现在:导入 imageio,然后 imageio.plugins.ffmpeg.download()

关于python - 提高 NeedDownloadError ('Need ffmpeg exe. ' NeedDownloadError : Need ffmpeg exe),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41402550/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com