Fix: "No module named manim" Error | QuantumSketch

'No module named manim' means Python can't find Manim โ€” usually the wrong environment. Activate your venv or pip install manim into the right interpreter.

By Shihab
2 min read

"No module named manim" means Python can't find the Manim package โ€” almost always because you're running the wrong Python environment. Activate your virtual environment, or install Manim into the interpreter you're actually running.

The fast fix

Install with python -m pip so the package lands in the interpreter that python runs:

python -m pip install manim

If you use a virtual environment, activate it first:

# macOS / Linux
source manim-env/bin/activate
# Windows
manim-env\Scripts\activate

Then python your_scene.py (or manim ...) will find it.

Why it happens

pip and python can point to different environments. You pip install manim into env A, then run python from env B โ€” which has no Manim. The package exists; it's just not on this interpreter's path.

Confirm which env you're in

python -c "import sys; print(sys.executable)"
pip -V

Both should point to the same location. Inside an activated venv, they align automatically.

| Symptom | Cause | Fix | |---|---|---| | Works in terminal, not VS Code | Editor uses other interpreter | Select the venv in VS Code | | pip install succeeded, import fails | pip โ‰  python env | python -m pip install manim | | Multiple Pythons installed | Version mismatch | Use one venv consistently |

Then verify the rest

Once the import works, run manim checkhealth to confirm FFmpeg and LaTeX are also detected.

Skip environment management

Python environments are the #1 beginner trap. QuantumSketch has no local Python at all โ€” you prompt, it renders. See Install Manim on Windows for the local path.


Written by Shihab Shahriar Antor ยท Shahriar Labs

FAQ

Q.Why does Python say 'No module named manim' after I installed it?

Because you installed Manim into one Python environment but you're running your script with a different one. This happens constantly: you pip install manim into a virtual environment but run python from a terminal where that venv isn't activated, or you have multiple Python versions and pip installed into a different one than python uses. The Manim package physically exists โ€” just not on the import path of the interpreter you're running. Activating the correct environment, or installing into the interpreter you actually run, resolves it.

Q.How do I make sure pip and python use the same environment?

Run python -m pip install manim instead of bare pip install manim. Using python -m pip guarantees the package installs into the exact interpreter that python launches, eliminating the mismatch. To confirm, run python -c 'import sys; print(sys.executable)' to see which interpreter you're using, and pip -V to see which environment pip targets โ€” they should point to the same place. Inside an activated virtual environment, both automatically align.

Tags:#manim#python#troubleshooting
S

Shihab Shahriar

AI Engineer & Founder of Shahriar Labs. Exploring the intersection of design, cognition, and machine learning.