Linux

The following instructions are given for different linux distributions that use different package managers. After executing the instructions corresponding to your distribution, go to Certifying a clean install to check whether the dependencies are installed correctly. All distributions will follow the same instructions in Certifying a clean install.

The two necessary dependencies are cairo and ffmpeg. LaTeX is strongly recommended, as it is necessary to have access to the Tex and MathTex classes. Sox is only required if you want manim to play sounds when rendering scenes.

Ubuntu/Debian

Before installing anything, make sure that your system is up to date.

sudo apt update
sudo apt upgrade

To install cairo:

sudo apt install libcairo2-dev

To install ffmpeg:

sudo apt install ffmpeg

To install LaTeX:

sudo apt install texlive texlive-latex-extra texlive-fonts-extra \
texlive-latex-recommended texlive-science texlive-fonts-extra tipa

To install Sox (optional):

sudo apt install sox

Note

These instructions are also valid for other Debian-based distributions or distributions that use the apt package manager.

Arch/Manjaro

To install cairo:

sudo pacman -S cairo

To install ffmpeg:

sudo pacman -S ffmpeg

To install LaTeX:

sudo pacman -S texlive-most

To install Sox (optional):

sudo pacman -S sox

Note

These instructions are also valid for other Arch-based distributions or distributions that use the pacman package manager.

Certifying a clean install

To check that all dependencies have been installed properly, you can execute the commands ffmpeg -version and latex. (If LaTeX is installed properly, you will be taken to a command-line program that captures your cursor. Press CTRL+C to exit.) To check that Sox is installed correctly, simply run sox.

Note

Note the LaTeX installation may take up a lot of space. The manim community developers are currently working on providing a simpler, lighter LaTeX package for you to install.

After making sure you have a clean install, you can go back to Installing Manim.