前置工作

sudo apt install git
sudo apt install python3.8

安装

git clone https://github.com/3b1b/manim.git
cd manim
sudo apt install texlive-full
sudo apt install ffmpeg
sudo apt install sox
python3 -m pip install pyreadline
python3 -m pip install pydub
sudo apt install libcairo2-dev libjpeg-dev libgif-dev python3-dev libffi-dev
python3 -m pip install -r requirements.txt

试一试

python3 -m mainm example_scenes.py OpeningMainmExample -pl