NAMSSN UI Chapter
Manim Lab • Setup & installation guideA clear, permanent guide for installing Manim Community Edition and running your first test scene – on Windows, macOS, Linux, or an online notebook.
0 • What this page is for
Manim installation can be confusing the first time. This guide is written for real UI laptops and common devices, not a perfect lab setup.
- • Understand where Manim runs (terminal or notebook).
- • Install Manim Community Edition correctly.
- • Render a first animation without guessing commands.
Any student struggling with installation can always land here and follow the steps exactly.
Important: There are two Manims online. This page is for the
Manim Community Edition installed through pip install manim.
1 • Big picture in three steps
- Step 1 – Python: Install Python 3.9 or newer.
- Step 2 – Manim: Install Manim using
pip. - Step 3 – Test: Run a small script to confirm installation.
For high-quality outputs, install LaTeX and ffmpeg.
2 • Windows installation (recommended)
These steps match typical UI laptops.
-
Install Python 3.9 or newer:
Download from the official site. TickAdd python.exe to PATHbefore proceeding. -
Open Command Prompt:
PressWin→ typecmd→ Enter. -
Install Manim:
py -m pip install --upgrade pip py -m pip install manim -
(Recommended) Install LaTeX and ffmpeg:
- • TeX Live or MiKTeX for LaTeX.
- • ffmpeg for video rendering.
-
Check Manim:
manim -h
If manim fails, try:
py -m manim
3 • macOS installation
Terminal uses python3 by default.
- Install Python 3.9+ (installer or Homebrew).
-
Open Terminal:
Spotlight → “Terminal”. -
(Optional) Create virtual environment:
python3 -m venv manim-env source manim-env/bin/activate -
Install Manim:
python3 -m pip install --upgrade pip python3 -m pip install manim -
Test:
manim -h
4 • Linux installation
- Install Python 3.9+ and pip.
-
Create virtual environment (optional):
python3 -m venv manim-env source manim-env/bin/activate -
Install Manim:
python3 -m pip install --upgrade pip python3 -m pip install manim -
Install LaTeX & ffmpeg (Ubuntu example):
sudo apt install texlive-full ffmpeg
5 • Online Manim notebooks
When students cannot install Manim locally, a shared online notebook works perfectly.
- • A mentor creates a Colab/Jupyter notebook with Manim installed.
- • Students run animations directly in the browser.
- • No terminal or installation needed on their personal device.
Once NAMSSN UI maintains a permanent shared notebook, the link will live here.
6 • Your first test scene (works everywhere)
-
Create a file:
from manim import * class HelloNAMSSN(Scene): def construct(self): text = Text("Hello, NAMSSN UI!") self.play(Write(text)) self.wait(1) - Open terminal inside that folder.
-
Run Manim:
manim hello_manim.py HelloNAMSSN -pql -
Check output:
- A preview window should appear - Video saved insidemediafolder
If manim fails, try:
python -m manim hello_manim.py HelloNAMSSN -pql
7 • Troubleshooting common errors
-
“manim not recognized”
Fix:- • Close and reopen the terminal.
- • Try
python -m manim(orpy -m manimon Windows,python3 -m manimon macOS/Linux). - • Ensure Python was added to PATH during installation.
-
LaTeX errors
Install full TeX Live or MiKTeX, then test with a simple formula scene. -
ffmpeg not found
Install ffmpeg and confirm with:ffmpeg -version -
Notebook says “Module not found: manim”
Inside the notebook, run:!pip install manim -
Following outdated tutorials
Ignore any code starting withfrom manimlib— that belongs to an older Manim version.
During installation sessions, mentors can keep this page open and walk through it with students.