
首先,建议大家去github按官方的安装。 github-manim 下面提供我安装的过程(win10-64),尽量详细点哈。
地址:FFmpeg 直接下载压缩包,解压后设置环境变量即可。因为这里官网的安装步骤太过细节了 将bin目录添加到环境变量
地址:miktex 这个是支持latex语法的 将bin\x64目录添加到环境变量
pip安装即可
这里直接照搬github上官方的:
git clone https://github.com/3b1b/manim.git # git下载
cd manim # 切换到下载的目录
pip install -e . # pip安装-w to write the scene to a file
-o to write the scene to a file and open the result
-s to skip to the end and just show the final frame.
-so will save the final frame to an image and show it
-n <number> to skip ahead to the n'th animation of a scene.
-f to make the playback window fullscreen目前刚安装,还没玩熟悉,所以只说我知道的。
官方示例:
# 先进入manim目录
manimgl example_scenes.py OpeningManimExample # 运行示例,过程中可能会提示安装一些宏包(我也不懂),安装就是了。这个示例有交互功能在目录中可以找到示例文件,对照着参考编码学习即可。深入学习那就参考官方文档吧。