| Requirement | Version | Notes |
|---|---|---|
| Python | 3.10+ | Required for match statements and modern type hints |
| FFmpeg | Any recent | Must be on system PATH; required for Manim video rendering |
| Git | Any | Required for GitHub Snippet Loader |
| LaTeX | TeX Live / MiKTeX | Required for MathTex / Tex nodes |
git clone https://github.com/programmersd21/EfficientManim.git
cd EfficientManimpython -m venv venv
# Windows:
venv\Scripts\activate
# Linux / macOS:
source venv/bin/activatepip install -r requirements.txtThis installs: manim, PySide6, google-genai, pydub, requests, numpy.
FFmpeg (required for video rendering and audio):
- Windows: Download from https://ffmpeg.org/download.html and add the
bin/folder toPATH. - macOS:
brew install ffmpeg - Linux:
sudo apt install ffmpeg
LaTeX (required for MathTex/Tex nodes):
- Windows: Install MiKTeX
- macOS:
brew install --cask mactex - Linux:
sudo apt install texlive-full
Go to File → Settings and paste your Google AI Studio API key into the API Key field.
Alternatively, set the environment variable before launching:
export GEMINI_API_KEY=your_key_herepython main.py- The home screen shows recent projects. Click New Project or just wait — it opens the editor automatically if you run
main.py. - In the editor, expand the Elements tab on the right. Double-click
Circleto add a Mobject node. - Double-click
FadeInto add an Animation node. - Double-click
▶ Play(at the top of the Elements tab) to add a Play node. - Connect:
Circle → FadeIn, thenFadeIn → Play. - Check the Code tab at the bottom — you should see
self.play(FadeIn(m_xxxxxx)). - Click Render Scene in the Video tab to produce an MP4.
manim command not found after install
Add your Python Scripts folder (Windows) or bin folder (Linux/macOS) to PATH.
PySide6 crashes on startup (Windows) Make sure you are not mixing 32-bit and 64-bit Python installations.
ModuleNotFoundError: No module named 'google.genai'
Run pip install google-genai>=0.3.0.
LaTeX-related Manim errors
Install the full TeX Live distribution. On Windows, run MiKTeX's package manager and install standalone, amsmath, and preview.
"No audio data received" from TTS
Check your Gemini API key. TTS requires the gemini-2.5-flash-preview-tts model which is in preview — make sure your key has access.
| Variable | Purpose |
|---|---|
GEMINI_API_KEY |
Gemini API key (overrides Settings dialog) |
QT_LOGGING_RULES |
Set to qt.multimedia.*=false (auto-set by app) |
Windows: The app sets AppUserModelID on startup for correct taskbar grouping. Windows Defender may flag manim subprocess calls — add your Python/Manim folders to the exclusion list.
Linux / Wayland: Use QT_QPA_PLATFORM=xcb if you see rendering issues.
macOS: If you see font issues with Manim output, install TeX Live via Homebrew and ensure pdflatex is on PATH.