Ask Your Question


asked 2021-03-10 14:08:43 +0200

ProfT gravatar image


Is it possible to install Sagemath to an existing python/ Jupyter Notebook installation. No new environment.


edit retag flag offensive close merge delete


Welcome to Ask Sage! Thank you for your question.

slelievre gravatar imageslelievre ( 2021-03-10 15:03:25 +0200 )edit

Can you say more about the existing Python / Jupyter Notebook installation in question?

  • what operating system?
  • is it via Conda? (e.g. Anaconda, Miniconda, Miniforge, Mambaforge)
slelievre gravatar imageslelievre ( 2021-03-10 15:22:42 +0200 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2021-03-10 15:00:02 +0200

slelievre gravatar image

updated 2021-03-10 15:01:06 +0200

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.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2021-03-10 14:08:43 +0200

Seen: 469 times

Last updated: Mar 10 '21