RuntimeError: No MovieWriters available in Matplotlib animation

前端 未结 3 1389
隐瞒了意图╮
隐瞒了意图╮ 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条回答
  •  攒了一身酷
    2020-12-20 15:36

    Try to specify path to ffpmeg program manually like

    import matplotlib.pyplot as plt
    plt.rcParams['animation.ffmpeg_path'] = '/usr/local/bin/ffmpeg'
    

    You have to put these code lines at the beginning of a script and then use animation Writer.

提交回复
热议问题