依赖问题
Manim
是基于 Python3
开发的,安装 Python3
是最为必要的。
除了 Python
以外,还需要 ffmpeg
来处理视频,sox
来处理音频,latex
来处理字体,pycairo
来处理图形。
主要参考网址
ffmpeg配置问题:Couldn‘t find ffmpeg or avconv - defaulting to ffmpeg, but may not work
其他参考网址
【manim安装】Windows Ananaconda 途径
cmd中跳转路径
cd/dF:\选修课\应用数学软件\Python视频制作\reliance
下载whl文件
https://www.lfd.uci.edu/~gohlke/pythonlibs/#第三方包名
问题
manimlib
无法安装:
manim
库与 manim
库本身就有部分冲突,安装一个后无需安装另外一个
Spyder
虚拟环境 Ipython
控制台问题(切换虚拟环境后, Spyder
内会显示重启 Ipython
内核失败):
需要在 Anaconda Navigator
Home 左上角选择 Applications on 虚拟环境
,再在虚拟环境内安装 Spyder
即可
这种方法 应该也是可行的
老师配置的环境
token码为
1c4ed48d8aebbcc38204260d7d988a367d38b625b2af518f
需要在每个函数的前面加上%%manim -v WARNING --disable_caching -ql('l', 'm', 'h', 'p', 'k'中的一个) 函数名
官网说明:In case you like to work with Jupyterlab / Jupyter notebooks, there is good news: Manim ships with a
%%manim
IPython magic command which makes it easy to use in such a setting as well. Find out more in thecorresponding documentation
.‘l’, ‘m’, ‘h’, ‘p’, ‘k’ 分别对应于 low, medium, high, 与 4k quality
from manim import * # 引入库
%%manim -v WARNING --disable_caching -ql('l', 'm', 'h', 'p', 'k'中的一个) 函数名 # Jupyter 环境下必须加这一句
......
......
self.remove() # 移除画布上的图像
问题
如何在老师给的环境中 加入LATEX宏包
例如 ctex宏包