manim

參考官網:https://github.com/3b1b/manim

還有一個重要網站(需要才能打開:https://www.reddit.com/r/3Blue1Brown/comments/b1porr/how_to_run_manim_on_windowsguide/

首先下載32位python 3.7.3安裝。

下載win32靜態連接的ffmpeg包,三個exe,複製到c盤根目錄,然後收到加環境變量

下載 https://www.lfd.uci.edu/~gohlke/pythonlibs/#pycairo,安裝這個非常容易出錯

下載1.18.1的win32版本,我下載的名字:

pycairo-1.18.1-cp37-cp37m-win32.whl

然後按照reddit上面手動安裝:

python -m pip install pycairo-1.18.1-cp37-cp37m-win32.whl的絕對路徑

安裝成功之後,需要到manim目錄中,打開requirements.txt刪掉pycairo兩行,一行是linux,

一行是win32,因爲之前已經手動安裝過了。

還需要安裝:

python -m pip install pyreadline

接着安裝https://miktex.org/download

接着安裝https://sourceforge.net/projects/sox/

然後從github上https://github.com/3b1b/manim

下載zip包解壓,到manim目錄中:

python -m pip install -r requirements.txt

最後運行一個例子:

python -m manim .\example_scenes.py WriteToCircle -pl

目前看到兩個教程不錯,一個是github上面的:

https://github.com/malhotra5/Manim-Tutorial

另外一個是:

https://talkingphysics.wordpress.com/2019/01/08/getting-started-animating-with-manim-and-python-3-7/

上主頁可以看各種視頻:

https://www.3blue1brown.com/

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章