Installation & Setup¶
handanim requires Python 3.11+.
Tip
Zero-Install Browser Playground: Try
handanimimmediately in Google Colab via notebooks/handanim_colab_playground.ipynb.Bundled FFmpeg:
handanimdepends onimageio-ffmpeg, which ships a self-contained staticffmpegbinary for macOS, Linux, and Windows. Video rendering and audio muxing work out of the box without installingffmpegon your systemPATH.Automatic Cairo Backend (`pycairo` → `cairocffi`):
handanimuses prebuiltpycairobinary wheels when available and automatically falls back to pure-Pythoncairocffi(with auto-discovery of Homebrew/opt/homebrew/lib,/usr/local/lib, and Conda$CONDA_PREFIX/lib). Inspect the active backend viahandanim.get_cairo_backend()or forceHANDANIM_CAIRO_BACKEND=cairocffi.
1. Installing via pip (from PyPI)¶
Core Animation Library (`handanim`)
pip install handanim
With Voice Synthesis & Audio Extras (`voiceanim`)
pip install "handanim[voice]"
With AI Agentic Studio & MCP Server (`aianim`)
pip install "handanim[ai]"
Full Installation (Everything)
pip install "handanim[all]"
3. Installing with Conda / Mamba¶
If you use Conda or Miniforge, conda-forge provides precompiled Cairo binaries on all operating systems:
conda create -n handanim python=3.11
conda activate handanim
conda install -c conda-forge cairo pycairo
pip install "handanim[all]"
4. Installing from Source (Poetry)¶
For contributors or local development:
git clone https://github.com/subroy13/handanim.git
cd handanim
poetry install --all-extras
poetry run pytest