@@ -9,32 +9,27 @@ SageMath can be installed on Linux and macOS via Conda from the
9
9
Both the ``x86_64 `` (Intel) architecture and the ``arm64 ``/``aarch64 ``
10
10
architectures (including Apple Silicon, M1) are supported.
11
11
12
- You will need a working Conda installation: either Mambaforge/ Miniforge,
12
+ You will need a working Conda installation: either Miniforge (or Mambaforge) ,
13
13
Miniconda or Anaconda. If you don't have one yet, we recommend installing
14
- `Mambaforge <https://github.com/conda-forge/miniforge#mambaforge >`_ as
14
+ `Miniforge <https://github.com/conda-forge/miniforge >`_ as
15
15
follows. In a terminal,
16
16
17
17
.. code-block :: shell
18
18
19
- $ curl -L -O https://github.com/conda-forge/miniforge/releases/latest/download/Mambaforge -$( uname) -$( uname -m) .sh
20
- $ sh Mambaforge -$( uname) -$( uname -m) .sh
19
+ $ curl -L -O " https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3 -$( uname) -$( uname -m) .sh"
20
+ $ bash Miniforge3 -$( uname) -$( uname -m) .sh
21
21
22
- * Mambaforge and Miniforge use conda-forge as the default channel.
22
+ * Miniforge ( and Mambaforge) use conda-forge as the default channel.
23
23
24
24
* If you are using Miniconda or Anaconda, set it up to use conda-forge:
25
25
26
26
* Add the conda-forge channel: ``conda config --add channels conda-forge ``
27
27
28
28
* Change channel priority to strict: ``conda config --set channel_priority strict ``
29
29
30
- Optionally, use `mamba <https://github.com/mamba-org/mamba >`_,
30
+ If you installed Miniforge (or Mambaforge), we recommend to use
31
+ `mamba <https://mamba.readthedocs.io/en/latest/index.html >`_ in the following,
31
32
which uses a faster dependency solver than ``conda ``.
32
- If you installed Mambaforge, it is already provided. Otherwise, use
33
-
34
- .. code-block :: shell
35
-
36
- $ conda install mamba
37
-
38
33
39
34
.. _sec-installation-conda-binary :
40
35
@@ -43,10 +38,17 @@ Installing all of SageMath from conda (not for development)
43
38
44
39
Create a new conda environment containing SageMath, either with ``mamba `` or ``conda ``:
45
40
46
- .. code-block :: shell
41
+ .. tab :: mamba
42
+
43
+ .. code-block :: shell
47
44
48
- $ mamba create -n sage sage python=X # either
49
- $ conda create -n sage sage python=X # or
45
+ $ mamba create -n sage sage python=X
46
+
47
+ .. tab :: conda
48
+
49
+ .. code-block :: shell
50
+
51
+ $ conda create -n sage sage python=X
50
52
51
53
where ``X `` is version of Python, e.g. ``3.9 ``.
52
54
@@ -109,17 +111,22 @@ Here we assume that you are using a git checkout.
109
111
110
112
$ export SAGE_NUM_THREADS=24
111
113
112
- - As a recommended step, install the ``mamba `` package manager. If
113
- you skip this step, replace ``mamba `` by ``conda `` in the
114
- following steps::
115
-
116
- $ conda install mamba
117
-
118
114
- Create and activate a new conda environment with the dependencies of Sage
119
115
and a few additional developer tools::
120
116
121
- $ mamba env create --file src/environment-dev-3.11-linux.yml --name sage-dev
122
- $ conda activate sage-dev
117
+ .. tab:: mamba
118
+
119
+ .. code-block:: shell
120
+
121
+ $ mamba env create --file src/environment-dev-3.11-linux.yml --name sage-dev
122
+ $ conda activate sage-dev
123
+
124
+ .. tab:: conda
125
+
126
+ .. code-block:: shell
127
+
128
+ $ conda env create --file src/environment-dev-3.11-linux.yml --name sage-dev
129
+ $ conda activate sage-dev
123
130
124
131
Alternatively, you can use ``src/environment-3.11-linux.yml `` or
125
132
``src/environment-optional-3.11-linux.yml ``, which will only install standard
0 commit comments