Files
QingLong/AI/Manim/安装Manim.txt
2025-08-15 09:13:13 +08:00

46 lines
1.5 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 0、参考文档
https://www.toutiao.com/article/6966561690787873284/
# 1、创建python3.10虚拟环境
conda create -n manim-env python=3.10 -y
# 2、激活python3.10虚拟环境
conda activate manim-env
# 3、添加到环境变量【必须否则报错CondaSSLError: OpenSSL appears to be unavailable on this machine. OpenSSL is required to download and install packages.】
D:\anaconda3\Library\bin
# 4、安装manim
conda install -c conda-forge numpy=1.23.5 scipy=1.9.3 --show-channel-urls -y
# 5. 下载安装MiKTeX国内用户建议使用清华镜像
https://mirrors.tuna.tsinghua.edu.cn/CTAN/systems/win32/miktex/setup/windows-x64/basic-miktex-23.10-x64.exe
# 验证
latex --version
# 6、下载安装
ffmpeg
# 7、安装manim
pip install pycairo -i https://mirrors.aliyun.com/pypi/simple/
pip install sox -i https://mirrors.aliyun.com/pypi/simple/
pip install manim -i https://mirrors.aliyun.com/pypi/simple/
# 验证版本
manim --version
# 8、测试
conda activate manim-env
# 最简单的方框和圆
manim -pql D:\dsWork\QingLong\AI\Manim\simple_example.py SimpleScene
# 平方差公式
manim -pql D:\dsWork\QingLong\AI\Manim\difference_of_squares.py SquareDifference
manim -pql D:\dsWork\QingLong\AI\Manim\difference_of_squares.py SquareDifference --flush_cache
# 【manim动画教程】
# https://www.cnblogs.com/wang_yb/p/18541513
https://url11.ctfile.com/d/45455611-64751047-a5be65?p=6872
完整的代码共享在网盘中transform.py
下载地址: 完整代码 (访问密码: 6872)