update README

This commit is contained in:
Tony031218 2021-02-07 21:43:20 +08:00
parent 00fe33957c
commit 36107c28ef
2 changed files with 15 additions and 11 deletions

View file

@ -29,10 +29,12 @@ If you want to hack on manimlib itself, clone this repository and in that direct
```sh ```sh
# Install python requirements # Install python requirements
pip install -r requirements.txt pip install -e .
# Try it out # Try it out
python manim.py example_scenes.py OpeningManimExample manimgl example_scenes.py OpeningManimExample
# or
manim-render example_scenes.py OpeningManimExample
``` ```
### Mac OSX ### Mac OSX
1. Install FFmpeg, LaTeX, Cairo in terminal using homebrew. 1. Install FFmpeg, LaTeX, Cairo in terminal using homebrew.
@ -44,8 +46,8 @@ python manim.py example_scenes.py OpeningManimExample
```sh ```sh
git clone https://github.com/3b1b/manim.git git clone https://github.com/3b1b/manim.git
cd manim cd manim
pip install -r requirements.txt pip install -e .
python manim.py example_scenes.py OpeningManimExample manimgl example_scenes.py OpeningManimExample
``` ```
### Directly (Windows) ### Directly (Windows)
@ -55,8 +57,8 @@ python manim.py example_scenes.py OpeningManimExample
```sh ```sh
git clone https://github.com/3b1b/manim.git git clone https://github.com/3b1b/manim.git
cd manim cd manim
pip install -r requirements.txt pip install -e .
python manim.py example_scenes.py OpeningManimExample manimgl example_scenes.py OpeningManimExample
``` ```
@ -78,7 +80,7 @@ python -m manim example_scenes.py OpeningManimExample
## Using manim ## Using manim
Try running the following: Try running the following:
```sh ```sh
python -m manim example_scenes.py OpeningManimExample manimgl example_scenes.py OpeningManimExample
``` ```
This should pop up a window playing a simple scene. This should pop up a window playing a simple scene.

View file

@ -19,10 +19,12 @@ that directory execute:
.. code-block:: sh .. code-block:: sh
# Install python requirements # Install python requirements
pip install -r requirements.txt pip install -e .
# Try it out # Try it out
python -m manim example_scenes.py OpeningManimExample manimgl example_scenes.py OpeningManimExample
# or
manim-render example_scenes.py OpeningManimExample
If you run the above command and no error message appears, If you run the above command and no error message appears,
then you have successfully installed all the environments required by manim. then you have successfully installed all the environments required by manim.
@ -40,8 +42,8 @@ Directly (Windows)
git clone https://github.com/3b1b/manim.git git clone https://github.com/3b1b/manim.git
cd manim cd manim
pip install -r requirements.txt pip install -e .
python manim.py example_scenes.py OpeningManimExample manimgl example_scenes.py OpeningManimExample
For Anaconda For Anaconda
------------ ------------