imgl是什么行业(img是哪个公司)

Manim 是一个用于精确编程动画的引擎,专为创建解释性数学视频而设计。

安装指南

Manim 运行在 Python 3.6 或者更高版本上(推荐使用 Python 3.8)

另外,不是特别推荐在 WSL 上安装 manimgl,因为 manimgl 在 预览时 不可避免地会调用 Pyglet Window 这个库,而这个库需要 GUI。不少用户为此花费大量的心血寻找解决方案,但真正解决的少之又少 qwq

所需的系统依赖有:

FFmpegOpenGL (包含在 python 包 PyOpenGL 中)LaTeX (可选,如果需要 LaTeX 则必需)Pango (只有 Linux 系统需要,可选,如果需要使用 manim 的 Text 则必需)直接安装(一般)

# 通过 pip 安装 manimglpip install manimgl# 测试一下manimgl

如果你想要更改 manimlib 的源码并使用,或者使用最新版本,可以 clone 下这个存储库 然后进入文件夹中执行:

# 安装pip install -e .# 测试manimgl example_scenes.py OpeningManimExample# 或manim-render example_scenes.py OpeningManimExample

如果你运行了上面这条命令,并且没有任何报错信息出现,那么你就已经安装好了 manim 所需的全部环境。

直接安装 (针对Windows)¶安装 FFmpeg, 并且保证它在 PATH 环境变量中安装一个 LaTeX 发行版,推荐 TeXLive-full安装剩余的 python 依赖包

git clone https://github.com/3b1b/manim.gitcd manimpip install -e .manimgl example_scenes.py OpeningManimExample使用 Anaconda同上安装 FFmpeg 和 LaTeX创建一个新的 conda 环境:

git clone https://github.com/3b1b/manim.gitcd manimconda create -n manim python=3.8conda activate manimpip install -e .