Matplotlib-动画“没有可用的电影作家" [英] Matplotlib-Animation "No MovieWriters Available"

查看:43
本文介绍了Matplotlib-动画“没有可用的电影作家"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 Linux 下,我一直在检查 matplotlib 的动画类,它似乎有效,只是我无法初始化电影作家来写出电影.

Under Linux, I've been checking out matplotlib's animation class, and it seems to work except that I cant initialise the movie writer to write out the movie.

使用任一示例:

导致错误RuntimeError: No MovieWriters available!"

我使用的是 matplotlib 版本 1.3.x 并安装了(希望如此)所有的编解码器.

Im using matplotlib version 1.3.x and have installed (hopefully) all the codecs.

有人可以建议我为什么会收到此错误吗?如果是编解码器问题,我应该安装哪些编解码器(+ 版本)?如果它的其他东西坏了,有没有其他方法可以在 python 中创建动画?

Can someone please suggest as to why I get this error? If its a codecs issue, which codecs (+versions) should I install? If its something else that's broken, is there an alternative for creating animations in python?

推荐答案

遇到了同样的问题....过了一会儿设法让它工作.

Had the same problem....managed to get it to work after a little while.

要做的是按照安装 FFmpeg 的说明进行操作 - 这是(至少在 Windows 上)您需要在环境变量中设置路径的一组可执行文件

Thing to do is follow instructions on installing FFmpeg - which is (at least on windows) a bundle of executables you need to set a path to in your environment variables

http://www.wikihow.com/Install-FFmpeg-on-Windows

从 ffmpeg.org 下载

希望这对某人有所帮助 - 即使在问题之后一段时间 - 祝你好运

Hope this helps someone - even after a while after the question - good luck

这篇关于Matplotlib-动画“没有可用的电影作家"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆