Ask Your Question

Revision history [back]

Is the question about Conda?

On Linux or macOS, one can install SageMath into an existing Conda environment as follows.

Optional, but recommended: add the conda-forge channel to your conda configuration:

$ conda config --add channels conda-forge

This allows to ignore the -c conda-forge part in all the commands below.

Optional, but recommended: install Mamba which has a faster dependency solver:

$ conda install mamba -c conda-forge

Activate the Conda environment you want to install Sage into:

$ conda activate xxx  # replace xxx as appropriate

Now install Sage:

  • if you have installed Mamba:

    $ mamba install sage -c conda-forge
    
  • otherwise:

    $ conda install sage -c conda-forge
    

Is the question about Conda?

On Linux or macOS, one can install SageMath into an existing Conda environment as follows.

Optional, but recommended: add the conda-forge channel to your conda configuration:

$ conda config --add channels conda-forge

This allows to ignore the -c conda-forge part in all the commands below.

Optional, but recommended: install Mamba which has a faster dependency solver:

$ conda install mamba -c conda-forge

Activate the Conda environment you want to install Sage into:

$ conda activate xxx  # replace xxx as appropriate

Now install Sage:

  • if you have installed Mamba:

    $ mamba install sage -c conda-forge
    
  • otherwise:

    $ conda install sage -c conda-forge
    

On Windows, Sage cannot be installed in Conda so far.