Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Install imagemagick in Google Colaboratory

I am trying to save an animation as a gif,via imagemagick package. This is what I did

anim.save('animation.gif', writer='imagemagick', fps=10)

But I am getting the following warning

MovieWriter imagemagick unavailable; trying to use <class 'matplotlib.animation.PillowWriter'> instead.

Since imagemagick is not a python package , how do I install it in Google colab? Or , is there a different package that I can use to save an animation as a gif in google colab?

like image 820
Ayan Biswas Avatar asked Dec 28 '19 09:12

Ayan Biswas


1 Answers

You can install it using apt

!apt install imagemagick
like image 164
korakot Avatar answered Nov 13 '22 12:11

korakot