RuntimeError: No MovieWriters available in Matplotlib animation

前端 未结 3 1390
隐瞒了意图╮
隐瞒了意图╮ 2020-12-20 15:22

The problem I am getting is in code similar to this example: https://matplotlib.org/examples/animation/basic_example_writer.html

The error:

Runt

3条回答
  •  梦毁少年i
    2020-12-20 15:54

    I have found '/usr/local/bin/ffmpeg' not exists in my computer. so i try this:

    import matplotlib.pyplot as plt
    import matplotlib.animation as animation
    Writer = animation.writers['pillow']
    writer = Writer(fps=15, metadata=dict(artist='Me'), bitrate=1800)
    

    and it works for me

提交回复
热议问题