bash sudo pacman -S pango pkgconf Tested on: - Arch Linux (rolling
release) - Manjaro
Install the following packages using your distribution’s package manager:
Pango development files (libpango1.0-dev or pango-devel)
pkg-config
Python development headers
Linux headless environments: For rendering on servers without a display,
you’ll need xvfb: bash sudo apt install xvfb # Debian/Ubuntu sudo dnf install xorg-x11-server-Xvfb # Fedora
For development or the latest unreleased features:
Copy
# Clone the repositorygit clone https://github.com/mathifylabs/manimVTK.gitcd manimVTK# Install in editable mode with VTK supportpip install -e ".[vtk]"# Or with all extras for developmentpip install -e ".[vtk,dev]"
Editable mode (-e) allows you to modify the source code and see changes
immediately without reinstalling
VTK was not installed or the installation failed. Solution:bash pip install vtk # Or reinstall with VTK extras pip install --force-reinstall manimvtk[vtk]
OpenGL errors on Linux
This occurs in headless environments (servers without display). Solution:
# Install xvfb sudo apt install xvfb # Run with xvfb wrapper xvfb-run
Copy
-a manimvtk -pql example.py Scene ```</Accordion>{" "}<Accordion icon="triangle-exclamation" title="Permission denied errors">You may need to use `--user` flag or a virtual environment. **Solution:**```bash # Option 1: Install for current user only pip install --usermanimvtk[vtk] # Option 2: Use a virtual environment (recommended) python -mvenv venv source venv/bin/activate # On Windows: venv\Scripts\activate pipinstall manimvtk[vtk] ```</Accordion><Accordion icon="triangle-exclamation" title="FFmpeg not found"> ManimVTK uses FFmpeg for video encoding. **Solution:** ```bash # Ubuntu/Debian sudo apt install ffmpeg # macOS brew install ffmpeg # Windows # Download from https://ffmpeg.org/download.html # Add to PATH
# For advanced VTK visualizationpip install pyvista# For Jupyter notebook supportpip install jupyter ipywidgets# For 3D file exportpip install trimesh# For advanced plottingpip install matplotlib