Skip to content

Commit 6fce164

Browse files
authored
Docs: Update installation guide on mac with Apple Silicon (#1028)
1 parent d07da23 commit 6fce164

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

docs/source/installation/mac.rst

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,22 @@ Mac
33

44
First, you need to install Homebrew. Homebrew is a package manager similar to
55
``apt`` or ``pacman`` on linux that allows you to install packages easily. If
6-
it is not installed, please install it with this command:
6+
it is not installed, please install it with this command (for Apple Silicon useres, please read the tip first):
77

88
.. code-block:: bash
99
1010
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" < /dev/null 2> /dev/null
1111
12+
13+
.. tip::
14+
15+
As of February 2020, the installation with ``brew`` has some issues with scipy and cairo packages in Apple Silicon mode. This can be solved by installing brew in the rosetta2 mode.
16+
Therefore, a rosetta terminal needs to be created (see here: https://5balloons.info/correct-way-to-install-and-use-homebrew-on-m1-macs/). In case you installed ``brew`` in the normal terminal before, you have to make sure you are using the correct brew when installing packages. On default, the rosetta brew is located at "/usr/local/bin/brew" and the Apple Silicon brew is located at "/opt/homebrew/bin/brew" (For more details on this, visit
17+
https://stackoverflow.com/questions/64882584/how-to-run-the-homebrew-installer-under-rosetta-2-on-m1-macbook ). Next, install cairo, ffmpeg and mactex as described below with the rosetta brew. If not already there, install python 3.9 with ``brew install [email protected]``. Finally, make sure that you are using the right pip version to install manim, for example by running ``/usr/local/opt/[email protected]/bin/python3.9 -m pip install manim``.
18+
19+
20+
21+
1222
To install cairo:
1323

1424
.. code-block:: bash

0 commit comments

Comments
 (0)