Movatterモバイル変換


[0]ホーム

URL:


ContentsMenuExpandLight modeDark modeAuto light/dark, in light modeAuto light/dark, in dark modeSkip to content
Installation Guide
Light LogoDark Logo
Version 10.8 Documentation
Back to top

Sage Installation Guide

This is the installation guide for SageMath, a free open-source mathematics software system.It is designed to help you install SageMath on your computer.For options to run SageMath in the cloud, see the sectionIn the cloud below.

If you are planning to do development on SageMath, please refer instead to theSage Developer’s Guide for instructions onobtaining the source code and building SageMath.

To install SageMath fromtheconda-forge projectyou can use the following command:

$condacreate-nsagesagepython=3.11

This will create a new conda environment namedsagecontaining SageMath and Python 3.11.You can then activate this environment with the commandcondaactivatesage and start SageMath by typingsage.

For more details, see sectionInstall from conda-forge.

Install SageMath by running the following command in a terminal:

$ sudo pacman -S sagemath

Install SageMath by running the following command in a terminal:

$ xbps-install -S sagemath

Install SageMath by running the following command in a terminal:

$ nix-env -iA nixpkgs.sage

Install SageMath from thesage-on-gentoooverlay by running the following command in a terminal:

$ emerge --noreplace eselect-repository && eselect repository enable sage-on-gentoo && emerge --sync$ emerge -av sage

Not all Linux distributions provide an up-to-date binary package of SageMath.Do not install a version of Sage older than 9.5.Instead we recommend to install SageMath via Conda, as described in thecorresponding section.

If you are on an older version of your distribution and a recentversion of SageMath is only available on a newer version of thedistribution, consider upgrading your distribution.

  • Install thebinary build of SageMathfrom the 3-manifolds project. It is a signed and notarized app, whichworks for macOS 10.12 and newer. It is completely self-contained andprovides the standard Sage distribution together with many optionalpackages. Additional optional Python packages can be installed with the%pip magic command and will go into your~/.sage directory.

  • Alternatively, install SageMath from theconda-forge project, as described in sectionInstall from conda-forge.

EnableWindows Subsystem for Linux (WSL) and installUbuntu as follows.

  • Make sure that hardware-assisted virtualization is enabled inthe EFI or BIOS of your system. If in doubt, refer to yoursystem’s documentation for instructions on how to do this.

  • Run the WSL install command as administrator.This will install Ubuntu Linux.

    Note that the basic instructions in the linked article apply toup-to-date installations of Windows 10 and 11, but there arealso links to the procedures for older builds of Windows 10.

  • If you had installed WSL previously or installed it usingdifferent instructions,verify that you are running WSL 2.

  • Set up your Linux username and password.Do not include any spaces in your username.

  • If your computer has less than 8GB of RAM,change the WSL settingsto make at least 4GB of RAM available to WSL.

Start Ubuntu from the Start menu, and type the following commandsto install Sage from conda-forge. The second step will ask a few questions,and you may need to hitEnter to confirm or typeyesand then hitEnter.

$curl-L-O"https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-$(uname)-$(uname-m).sh"$bashMiniforge3-$(uname)-$(uname-m).sh$condacreate-nsagesagepython=3.12

(If there are any installation failures, please report them tothe conda-forge maintainers by opening aGitHub Issue forconda-forge/sage-feedstock.)

You can now start SageMath as follows:

$condaactivatesage$sage

After installation, you can start SageMath in a terminal as follows:

$sage

This way of starting Sage gives you the most basic way of usingSage in the terminal. SeeLaunching SageMath for recommended next steps,in particular for setting up the Jupyter notebook, which is required ifyou want to use graphics.

In the cloud

More information

On this page

[8]ページ先頭

©2009-2026 Movatter.jp