Ask Your Question
1

Installation

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

ProfT gravatar image

Hi,

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

Cheers,

edit retag flag offensive close merge delete

Comments

Welcome to Ask Sage! Thank you for your question.

slelievre gravatar imageslelievre ( 2021-03-10 15:03:25 +0100 )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 +0100 )edit

1 Answer

Sort by ยป oldest newest most voted
0

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

slelievre gravatar image

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

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

Stats

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

Seen: 744 times

Last updated: Mar 10 '21