본문 바로가기

Programming/Manim Lectures

[02-1]Basic environment configuration and required library installation

반응형

Manim can be installed not only on Windows, but also on Linux and Mac, but here we will introduce the installation method only when using Windows10.

 

Basic Environment for this lecture

  • OS: Windows 10 (or Windows 7)
  • Python: Python 3 (If you're not installed Python in your PC, please visit Python site and intall it)
I'm using Python 3.7.7 but the latest version is 3.8.3 now (2020.5.31). It's possible (better) to use the latest one.

 

Install required external libraries

In addition to Python, Manim uses external libraries for video file creation, audio file playback, graphic processing, and text processing, so you must install this libraries in advance.

 

Just follow the installation sequence below. (Python must already be installed.)

 

1) FFmpeg: Library that creates video files

Download the installation file from the site below and install it.

 

https://www.wikihow.com/Install-FFmpeg-on-Windows

 

How to Install FFmpeg on Windows

This wikiHow teaches you how to install FFmpeg onto your Windows 10 computer. FFmpeg is a command line-only program that allows you to convert videos and audio into different formats, as well as record live audio and video. Open the FFmpeg...

www.wikihow.com

 

2) pycairo: Graphic library

Download the installation file for your operating system from the site below and run it to install.

 

https://www.lfd.uci.edu/~gohlke/pythonlibs/#pycairo

 

In case of 64bit Windows and Python 3.8, select 'pycairo-1.19.1-cp38-win_amd64.whl' file and download it

 

 

You have to install downloaded file with 'pip install' command in the directory containing the downloaded file.

 

pip install pycairo‑1.19.1‑cp38‑cp38‑win_amd64.whl

 

 

 

3) MikTex: LaTex program for equation input

If you finish installation the MikTex program, the program will start to package installation automatically. However if your network environment uses 'proxy', you have to set proxy in the MikTex Console:

How to set proxy for MikTex
- Rrun MikTex Console Program
- Packages > Change > Connection Setting : set proxy you're using and select any site to download the package.

 

The newly required LaTex packages when you're creating a TexMobject in the manim will be downloaded at that time and ask you the permission to download it. This is a bit annoying whenever you have to press 'Yes'button when a new package is required.

Therefore, it's better to set the option as 'Always install missing packages on-the-fly' in the MiKtex Console program.

 

If you want to use another languages other than English in the LaTex, you have to modify tex_template.tex file. You can find out how to modify the file on this page.

 

 

4) Sox: Sound library

Download installation file in here: sourceforge.net/projects/sox/files/sox/

 

The most recent version is 14.4.2

 

Download 'sox-14.4.2-win32.exe' file from the site and run it to install.

 


The required external libraries have been installed. Now just install the Madam Library according to the next page.

 


Next: [02-2]Download and Install the Manim package

 

[02-2]Download and Install the Manim package

Install Manim package 1. Download Manim package from here: https://github.com/3b1b/manim 3b1b/manim Animation engine for explanatory math videos. Contribute to 3b1b/manim development by creating an..

infograph.tistory.com

Go To: [99] Table of Contents

반응형