Skip to content

Commit a5b1268

Browse files
Rewrite installation instructions
1 parent 74f79a4 commit a5b1268

File tree

6 files changed

+145
-103
lines changed

6 files changed

+145
-103
lines changed

docs/source/faq/installation.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ of [ManimPango's README](https://github.com/ManimCommunity/ManimPango).
120120

121121
---
122122

123+
(not-on-path)=
123124
## I am using Windows and get the error `X is not recognized as an internal or external command, operable program or batch file`
124125

125126
Regardless of whether `X` says `python` or `manim`, this means that the executable you

docs/source/installation.rst

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,7 @@ Manim is a Python library, and it can be
6565
installed via `pip <https://pypi.org/project/manim/>`__
6666
or `conda <https://anaconda.org/conda-forge/manim/>`__. However,
6767
in order for Manim to work properly, some additional system
68-
dependencies need to be installed first. The following pages have
69-
operating system specific instructions for you to follow.
68+
dependencies need to be installed first.
7069

7170
Manim requires Python version ``3.9`` or above to run.
7271

@@ -80,12 +79,23 @@ Manim requires Python version ``3.9`` or above to run.
8079
Discussion `directly on GitHub
8180
<https://github.com/ManimCommunity/manim/discussions>`__.
8281

82+
83+
To install Manim locally, check out the following pages. Note
84+
that the process for Linux is slightly different - if you're
85+
on Linux please follow the instructions in the `Linux section <installation/linux>`_.
86+
8387
.. toctree::
84-
:maxdepth: 2
88+
:maxdepth: 1
89+
90+
installation/locally
91+
92+
93+
Once you've installed the core dependencies, you can proceed to
94+
install the optional dependencies, depending on your system.
8595

86-
installation/windows
87-
installation/macos
88-
installation/linux
96+
- :doc:`installation/windows`
97+
- :doc:`installation/macos`
98+
- :doc:`installation/linux`
8999

90100
Once Manim is installed locally, you can proceed to our
91101
:doc:`quickstart guide <tutorials/quickstart>` which walks you

docs/source/installation/linux.rst

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Then, installing Manim is just a matter of running:
2020

2121
In light of the current efforts of migrating to rendering via OpenGL,
2222
this list might be incomplete. Please `let us know
23-
<https://github.com/ManimCommunity/manim/issues/new/choose>` if you
23+
<https://github.com/ManimCommunity/manim/issues/new/choose>`__ if you
2424
ran into missing dependencies while installing.
2525

2626
In any case, we have also compiled instructions for several common
@@ -29,6 +29,13 @@ combinations of operating systems and package managers below.
2929
Required Dependencies
3030
---------------------
3131

32+
.. tip::
33+
34+
If you have multiple Python versions installed, you might need to install the python
35+
development headers for the correct version. For example, if you have Python 3.9 installed,
36+
you would need to install python3.9-dev.
37+
38+
3239
apt – Ubuntu / Mint / Debian
3340
****************************
3441

@@ -95,8 +102,7 @@ Cairo and Pango:
95102

96103
.. code-block:: bash
97104
98-
sudo pacman -Syu
99-
sudo pacman -S cairo pango
105+
sudo pacman -Syu cairo pango
100106
101107
If you don't have ``python-pip`` installed, get it by running:
102108

@@ -147,13 +153,12 @@ Should you choose to work with some smaller TeX distribution like
147153
of LaTeX packages which Manim interacts with in some way (a subset might
148154
be sufficient for your particular application) is::
149155

150-
collection-basic amsmath babel-english cbfonts-fd cm-super ctex doublestroke
151-
dvisvgm everysel fontspec frcursive fundus-calligra gnu-freefont jknapltx
152-
latex-bin mathastext microtype ms physics preview ragged2e relsize rsfs
156+
amsmath babel-english cbfonts-fd cm-super count1to ctex doublestroke dvisvgm everysel
157+
fontspec frcursive fundus-calligra gnu-freefont jknapltx latex-bin
158+
mathastext microtype multitoc physics preview prelim2e ragged2e relsize rsfs
153159
setspace standalone tipa wasy wasysym xcolor xetex xkeyval
154160

155161

156-
157162
Working with Manim
158163
------------------
159164

docs/source/installation/locally.rst

Lines changed: 109 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
1+
Installing Manim Locally
2+
************************
3+
For the most part, installing Manim is the same across operating systems. However,
4+
you can take some shortcuts depending on your operating system.
5+
6+
- MacOS users can use `Homebrew <https://brew.sh>`_ to install Manim - check out the section for :ref:`MacOS<macos_homebrew>`.
7+
8+
9+
However, if you don't want to use a package manager, check out the section for :ref:`all operating systems<all_os>`.
10+
11+
.. _all_os:
12+
13+
All Operating Systems
14+
=====================
15+
Manim requires a Python version of at least ``3.9`` to run.
16+
If you're not sure if you have python installed, or want to check
17+
what version of Python you have, try running::
18+
19+
python --version
20+
21+
If it errors out, you most likely don't have Python installed. Otherwise, if your
22+
python version is ``3.9`` or higher, you can proceed to :ref:`installing Manim with Pip<manim_pip>`.
23+
24+
.. hint::
25+
26+
On MacOS and some Linux distributions, you may have to use ``python3`` instead of ``python``.
27+
In this document, we will use ``python``, but depending on your operating system you may have to
28+
use ``python3``.
29+
30+
Installing Python
31+
-----------------
32+
If you don't have Python installed, head over to https://www.python.org, download an installer
33+
for a recent (preferably the latest) version of Python, and follow its instructions to get Python
34+
installed on your system.
35+
36+
.. note::
37+
38+
We have received reports of problems caused by using the version of
39+
Python that can be installed from the Windows Store. At this point,
40+
we recommend staying away from the Windows Store version. Instead,
41+
install Python directly from the `official website <https://www.python.org>`__.
42+
43+
44+
After installing Python, running the command::
45+
46+
python --version
47+
48+
Should be successful. If it is not, try checking out :ref:`this FAQ entry<not-on-path>`.
49+
50+
.. _manim_pip:
51+
52+
Installing Manim
53+
----------------
54+
At this point, installing manim should be as easy as running::
55+
56+
python -m pip install manim
57+
58+
To confirm Manim is working, you can run::
59+
60+
manim --version
61+
62+
63+
.. _macos_homebrew:
64+
65+
MacOS
66+
=====
67+
The easiest way to install Manim on macOS is via the popular `package manager Homebrew <https://brew.sh>`__.
68+
If you want to use Homebrew but do not have it installed yet, please
69+
follow `Homebrew's installation instructions <https://docs.brew.sh/Installation>`__.
70+
71+
.. note::
72+
73+
For a while after Apple released its new ARM-based processors (the Apple Silicon chips like the *"M1 chip"*),
74+
the recommended way of installing Manim relied on *Rosetta*, Apple's compatibility
75+
layer between Intel and ARM architectures. This is no longer necessary, Manim can
76+
(and is recommended to) be installed natively.
77+
78+
Manim has a Homebrew formula, so you can just run::
79+
80+
brew install manim
81+
82+
And you should have Manim all installed! Head on over to install the :ref:`optional dependencies<optional_dependencies>`.
83+
84+
85+
.. _optional_dependencies:
86+
87+
Optional Dependencies
88+
=====================
89+
At this point, Manim should be fully working! However,
90+
many Manim objects depend on ``LaTeX``, a math typesetting system.
91+
How to install a texlive distribution varies across operating systems,
92+
so check out the document that matches your operating system below:
93+
94+
.. toctree::
95+
:maxdepth: 1
96+
97+
windows
98+
macos
99+
linux
100+
101+
To confirm all dependencies are installed and working, run::
102+
103+
manim checkhealth
104+
105+
106+
Working with Manim
107+
==================
108+
Head over to our :doc:`Quickstart Tutorial <../tutorials/quickstart>` to learn
109+
how to make your own *Manimations*!

docs/source/installation/macos.rst

Lines changed: 4 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,6 @@
1-
macOS
1+
MacOS
22
=====
3-
4-
For the sake of simplicity, the following instructions assume that you have
5-
the popular `package manager Homebrew <https://brew.sh>`__ installed. While
6-
you can certainly also install all dependencies without it, using Homebrew
7-
makes the process much easier.
8-
9-
If you want to use Homebrew but do not have it installed yet, please
10-
follow `Homebrew's installation instructions <https://docs.brew.sh/Installation>`__.
11-
12-
.. note::
13-
14-
For a while after Apple released its new ARM-based processors (the Apple Silicon chips like the *"M1 chip"*),
15-
the recommended way of installing Manim relied on *Rosetta*, Apple's compatibility
16-
layer between Intel and ARM architectures. This is no longer necessary, Manim can
17-
(and is recommended to) be installed natively.
18-
19-
20-
Installing Manim
21-
----------------
22-
23-
As of July/2024, brew can install Manim including all required dependencies.
24-
To install Manim:
25-
26-
.. code-block:: bash
27-
28-
brew install manim
3+
For installing Manim, please refer to the :doc:`installation instructions <../installation>`.
294

305
.. _macos-optional-dependencies:
316

@@ -56,9 +31,9 @@ Should you choose to work with some partial TeX distribution, the full list
5631
of LaTeX packages which Manim interacts with in some way (a subset might
5732
be sufficient for your particular application) is::
5833

59-
amsmath babel-english cbfonts-fd cm-super ctex doublestroke dvisvgm everysel
34+
amsmath babel-english cbfonts-fd cm-super count1to ctex doublestroke dvisvgm everysel
6035
fontspec frcursive fundus-calligra gnu-freefont jknapltx latex-bin
61-
mathastext microtype ms physics preview ragged2e relsize rsfs
36+
mathastext microtype multitoc physics preview prelim2e ragged2e relsize rsfs
6237
setspace standalone tipa wasy wasysym xcolor xetex xkeyval
6338

6439

docs/source/installation/windows.rst

Lines changed: 3 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -1,64 +1,6 @@
11
Windows
22
=======
3-
4-
The easiest way of installing Manim and its dependencies is by using a
5-
package manager like `Chocolatey <https://chocolatey.org/>`__
6-
or `Scoop <https://scoop.sh>`__, especially if you need optional dependencies
7-
like LaTeX support.
8-
9-
If you choose to use one of the package managers, please follow
10-
their installation instructions
11-
(`for Chocolatey <https://chocolatey.org/install#install-step2>`__,
12-
`for Scoop <https://scoop-docs.now.sh/docs/getting-started/Quick-Start.html>`__)
13-
to make one of them available on your system.
14-
15-
16-
Required Dependencies
17-
---------------------
18-
19-
Manim requires a recent version of Python (3.9 or above)
20-
in order to work.
21-
22-
Chocolatey
23-
**********
24-
25-
Manim can be installed via Chocolatey simply by running:
26-
27-
.. code-block:: powershell
28-
29-
choco install manimce
30-
31-
That's it, no further steps required. You can continue with installing
32-
the :ref:`optional dependencies <win-optional-dependencies>` below.
33-
34-
Pip
35-
***
36-
37-
As mentioned above, Manim needs a reasonably recent version of
38-
Python 3 (3.9 or above).
39-
40-
**Python:** Head over to https://www.python.org, download an installer
41-
for a recent version of Python, and follow its instructions to get Python
42-
installed on your system.
43-
44-
.. note::
45-
46-
We have received reports of problems caused by using the version of
47-
Python that can be installed from the Windows Store. At this point,
48-
we recommend staying away from the Windows Store version. Instead,
49-
install Python directly from the
50-
`official website <https://www.python.org>`__.
51-
52-
Then, Manim can be installed via Pip simply by running:
53-
54-
.. code-block:: powershell
55-
56-
python -m pip install manim
57-
58-
Manim should now be installed on your system. Continue reading
59-
the :ref:`optional dependencies <win-optional-dependencies>` section
60-
below.
61-
3+
For installing Manim, please refer to the :doc:`installation instructions <../installation>`.
624

635
.. _win-optional-dependencies:
646

@@ -93,9 +35,9 @@ Therefore we only recommend this option if you know what you are doing.
9335
The full list of LaTeX packages which Manim interacts with in some way
9436
(a subset might be sufficient for your particular application) are::
9537

96-
amsmath babel-english cbfonts-fd cm-super ctex doublestroke dvisvgm everysel
38+
amsmath babel-english cbfonts-fd cm-super count1to ctex doublestroke dvisvgm everysel
9739
fontspec frcursive fundus-calligra gnu-freefont jknapltx latex-bin
98-
mathastext microtype ms physics preview ragged2e relsize rsfs
40+
mathastext microtype multitoc physics preview prelim2e ragged2e relsize rsfs
9941
setspace standalone tipa wasy wasysym xcolor xetex xkeyval
10042

10143

0 commit comments

Comments
 (0)