2021-01-24 09:49:29 +08:00
|
|
|
|
Installation
|
|
|
|
|
============
|
|
|
|
|
|
2021-02-15 12:23:53 +08:00
|
|
|
|
Manim runs on Python 3.6 or higher (Python 3.8 is recommended).
|
2021-01-24 09:49:29 +08:00
|
|
|
|
|
2021-01-25 10:20:41 +08:00
|
|
|
|
System requirements are:
|
|
|
|
|
|
|
|
|
|
- `FFmpeg <https://ffmpeg.org/>`__
|
|
|
|
|
- `OpenGL <https://www.opengl.org//>`__ (included in python package ``PyOpenGL``)
|
|
|
|
|
- `LaTeX <https://www.latex-project.org>`__ (optional, if you want to use LaTeX)
|
2021-02-26 22:31:22 +05:30
|
|
|
|
- `Pango <https://pango.org>`__ (only for Linux)
|
|
|
|
|
|
|
|
|
|
.. important::
|
|
|
|
|
|
|
|
|
|
For Linux Users, installing the wheels provided by
|
|
|
|
|
`ManimPango <https://pypi.org/project/manimpango>`__ will cause unwanted side effects.
|
|
|
|
|
See https://github.com/3b1b/manim/issues/1387 and https://github.com/3b1b/manim/issues/1391
|
2021-01-24 09:49:29 +08:00
|
|
|
|
|
|
|
|
|
Directly
|
|
|
|
|
--------
|
|
|
|
|
|
2021-02-15 12:23:53 +08:00
|
|
|
|
.. code-block:: sh
|
|
|
|
|
|
|
|
|
|
# Install manimgl
|
|
|
|
|
pip install manimgl
|
|
|
|
|
|
|
|
|
|
# Try it out
|
|
|
|
|
manimgl
|
|
|
|
|
|
2021-01-24 09:49:29 +08:00
|
|
|
|
If you want to hack on manimlib itself, clone this repository and in
|
|
|
|
|
that directory execute:
|
|
|
|
|
|
2021-01-26 14:57:05 +08:00
|
|
|
|
.. code-block:: sh
|
2021-01-24 09:49:29 +08:00
|
|
|
|
|
|
|
|
|
# Install python requirements
|
2021-02-07 21:43:20 +08:00
|
|
|
|
pip install -e .
|
2021-01-24 09:49:29 +08:00
|
|
|
|
|
|
|
|
|
# Try it out
|
2021-02-07 21:43:20 +08:00
|
|
|
|
manimgl example_scenes.py OpeningManimExample
|
|
|
|
|
# or
|
|
|
|
|
manim-render example_scenes.py OpeningManimExample
|
2021-01-24 09:49:29 +08:00
|
|
|
|
|
2021-01-25 19:53:44 +08:00
|
|
|
|
If you run the above command and no error message appears,
|
|
|
|
|
then you have successfully installed all the environments required by manim.
|
|
|
|
|
|
2021-01-24 09:49:29 +08:00
|
|
|
|
Directly (Windows)
|
|
|
|
|
------------------
|
|
|
|
|
|
|
|
|
|
1. `Install
|
2021-01-25 10:20:41 +08:00
|
|
|
|
FFmpeg <https://www.wikihow.com/Install-FFmpeg-on-Windows>`__, and make sure that its path is in the PATH environment variable.
|
2021-01-24 09:49:29 +08:00
|
|
|
|
2. Install a LaTeX distribution.
|
2021-01-25 10:20:41 +08:00
|
|
|
|
`TeXLive-full <http://tug.org/texlive/>`__ is recommended.
|
2021-01-24 09:49:29 +08:00
|
|
|
|
3. Install the remaining Python packages.
|
|
|
|
|
|
2021-01-26 14:57:05 +08:00
|
|
|
|
.. code-block:: sh
|
2021-01-24 09:49:29 +08:00
|
|
|
|
|
|
|
|
|
git clone https://github.com/3b1b/manim.git
|
|
|
|
|
cd manim
|
2021-02-07 21:43:20 +08:00
|
|
|
|
pip install -e .
|
|
|
|
|
manimgl example_scenes.py OpeningManimExample
|
2021-01-24 09:49:29 +08:00
|
|
|
|
|
|
|
|
|
For Anaconda
|
2021-01-25 10:20:41 +08:00
|
|
|
|
------------
|
2021-01-24 09:49:29 +08:00
|
|
|
|
|
2021-01-25 10:20:41 +08:00
|
|
|
|
- Install FFmpeg and LaTeX as above.
|
2021-01-24 09:49:29 +08:00
|
|
|
|
- Create a conda environment using
|
2021-01-25 10:20:41 +08:00
|
|
|
|
|
|
|
|
|
.. code-block:: sh
|
|
|
|
|
|
|
|
|
|
git clone https://github.com/3b1b/manim.git
|
|
|
|
|
cd manim
|
2021-02-08 12:04:29 +08:00
|
|
|
|
conda create -n manim python=3.8
|
|
|
|
|
conda activate manim
|
2021-02-26 22:31:22 +05:30
|
|
|
|
pip install -e .
|