Installation¶
Manim runs on Python 3.10 or higher.
System requirements are:
OpenGL (included in python package
PyOpenGL)LaTeX (optional, if you want to use LaTeX)
Pango (only for Linux)
Install FFmpeg¶
Follow the instructions for your platform, then run ffmpeg -version to check
that the installation succeeded.
Windows¶
choco install ffmpeg
Linux¶
sudo apt update
sudo apt install ffmpeg
macOS¶
brew install ffmpeg
Directly¶
# Install manimgl
pip install manimgl
# Try it out
manimgl
If you want to hack on manimlib itself, clone this repository and in that directory execute:
# Install python requirements
pip install -e .
# Try it out
manimgl example_scenes.py OpeningManimExample
# or
manim-render example_scenes.py OpeningManimExample
If you run the above command and no error message appears, then you have successfully installed all the environments required by manim.
Directly (Windows)¶
Install FFmpeg, and make sure that its path is in the PATH environment variable.
Install a LaTeX distribution. TeXLive-full is recommended.
Install the remaining Python packages.
git clone https://github.com/3b1b/manim.git
cd manim
pip install -e .
manimgl example_scenes.py OpeningManimExample
For Anaconda¶
Install FFmpeg and LaTeX as above.
Clone the repository and set up the environment using
git clone https://github.com/3b1b/manim.git
cd manim
conda create -n manim python=3.10
conda activate manim
pip install -e .