https://conda.io/docs/_images/conda_logo.svg

Conda packages for Linux & macOS are available through conda-forge.

Setting Up

In short: Install sage from conda-forge.

Maintenance

The packages necessary to run sage are developed on the github pages of conda-forge. The actual sage package and many of its dependencies are maintained by Isuru Fernando (and a few volunteers).

Conda for Sage Developers

You can develop Sage without building any of its dependencies (experimental) --- on my machine this takes 5 minutes. Assume you obtained Sage source tree and changed to its root.

$ export SAGE_NUM_THREADS=24 # or whatever the meaningful value for you is - no more than the number of cores.
$ conda install mamba
$ mamba create -n sage-build python=3.9 gettext autoconf automake libtool pkg-config
$ conda activate sage-build
$ ./bootstrap                                             # this generates src/environment.yml
$ mamba env update -n sage-build -f src/environment.yml
$ conda activate sage-build
$ ./configure --with-python=$CONDA_PREFIX/bin/python --with-system-gcc=force  --enable-download-from-upstream-url
$ pip install --no-build-isolation -v -v pkgs/sage-conf pkgs/sage-setup 
$ pip install --no-build-isolation -v -v -r src/requirements.txt -e src
$ sage -c 'print(version())'
SageMath version 9.5, Release Date: 2022-01-30

Open Issues

General

To check whether there are known issues with Conda:

Windows

There is likely not going to be a working package in the near future, see https://groups.google.com/d/msg/sage-devel/wyaV8x5qolI/jVS4DKBvCAAJ.