Manim - A mathematical animation engine made by 3b1b for mathematical animations
- Python 3.7
- Operating System (Linux (Preffered), Windows, MacOS)
Below aee some packages we need to install to use manim as manim heavily relies on them : Cairo,sox, Latex andffmpeg
sudo apt install ffmpeg sox
sudo apt-get install libcairo2-dev libjpeg-dev libgif-dev
sudo apt install texlive-latex-base texlive-full texlive-fonts-extraInstall Manim within a virtual environment to avoid package conflicts
python3 -m venv .venv
source .venv/bin/activate
pip install manimI highly prefer Windows user to use WSL (Windows Subsystem for Linux) for Manim
Requirements :
- Windows 10(Build 20262+) or Windows 11
First check if you have all the prerequisites for the installation or not
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -AllOpen Terminal and run :
wsl --installYou can see a list of Distros by runnig :
wsl --list --onlineBut for now we will be using Ubuntu
wsl --install -d UbuntuFollow on screen Commands to set Username and Password for Ubuntu
Install System Dependencies
sudo apt update && sudo apt upgrade -y
sudo apt install libcairo2-dev ffmpeg sox texlive-fullInstall Manim within a virtual environment to avoid package conflicts
python3 -m venv .venv
source .venv/bin/activate
pip install manimLets get this manim repo using the terminal -
git clone https://github.com/sahilvirdi01/Python-Manim.git
cd Python-Manim | Animation | Code | Preview |
|---|---|---|
| Hello World | HelloWorld.py |
![]() |
| Circle | Circle.py |
![]() |
| Square | Square.py |
![]() |
| Triangle | Triangle.py |
![]() |
| Multiple Shapes | Shapes.py |
![]() |
| Transform animation | Transform.py |
![]() |
| Animation | Code | Preview |
|---|---|---|
| Sine Wave | Sine wave.py |
![]() |






