sagemath
Sage: Open Source Mathematics Software: Standard Python Library
Decision gist · record as of 2026-08-14
Yes, with conditions. SageMath is a mature, actively maintained system suitable for academic and research use, with no known vulnerabilities and strong GPL-compliant licensing for open-source projects. However, install it only if you can meet the high friction cost: substantial disk space, a C/Fortran compiler, and patience for a significant build or container setup. For casual exploration, use cloud-hosted options first. Avoid if you need rapid installation or are building proprietary software without GPL compatibility.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.12–3.14; building from source demands substantial free disk space, a C/Fortran compiler (gfortran on macOS via Homebrew), and sufficient RAM.
- macOS Apple Silicon (M1, M2, M3, M4) users must ensure clean /usr/local directory.
- High install friction: the package carries 28 runtime dependencies including compiled libraries (cypari2, cysignals, gmpy2, fpylll, pplpy) and requires substantial disk space for building from source.
License · maintenance · safety
GPL-2.0-or-later (copyleft) — Licensed under GPL-2.0-or-later (copyleft). Any derivative work or distribution must comply with GPLv2+ terms, including source code availability. Suitable for academic and open-source projects; proprietary software integration requires careful legal review.
last release 2026-05-04 (102 days)
0 known vulnerabilities (OSV.dev, 2026-08-14) · 74,258 downloads/mo, #14,857 on PyPI
Alternatives
Verify before relying
from sage.all import *
# Example: symbolic computation
x = var('x')
equation = x**2 + 2*x + 1
factored = factor(equation)
print(factored) # Output: (x + 1)^2- Whether pre-built binaries or conda packages reduce installation friction compared to source builds
- Performance characteristics and typical memory requirements during runtime
- Compatibility with specific Linux distributions beyond the general 'major distributions' claim
- Exact disk space requirements for runtime versus build-time operations
What it is and what it does
SageMath is a mature, actively maintained open-source mathematics platform designed as a viable alternative to commercial systems. It integrates symbolic computation, numerical methods, and visualization into a unified Python-based environment, leveraging 28 specialized libraries including sympy, numpy, scipy, matplotlib, and domain-specific packages like cypari2, networkx, and primecountpy.
The system is released under GPL-2.0-or-later and supports Python 3.12–3.14 across Linux, macOS, and Windows (via WSL or virtualization). Installation carries high friction due to compiled dependencies, but the project maintains active development and offers multiple deployment options: source builds, package managers, Docker images, and cloud-based environments. It is intended for education and scientific research, with comprehensive online documentation.
Use it for
- Symbolic algebra and equation solving in research or educational settings without commercial licensing constraints
- Numerical computations combining linear algebra, calculus, and differential equations with visualization
- Number theory and cryptography research using integrated libraries like cypari2 and primecountpy
- Graph theory and combinatorics analysis via networkx integration
- Interactive mathematical exploration in Jupyter notebooks via ipykernel and ipywidgets
- Reproducible computational mathematics workflows in academic publications and open-source projects
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, with conditions.
SageMath is a mature, actively maintained system suitable for academic and research use, with no known vulnerabilities and strong GPL-compliant licensing for open-source projects. However, install it only if you can meet the high friction cost: substantial disk space, a C/Fortran compiler, and patience for a significant build or container setup. For casual exploration, use cloud-hosted options first. Avoid if you need rapid installation or are building proprietary software without GPL compatibility.
Install
sagemath on PyPI
Before you install
High install friction: the package carries 28 runtime dependencies including compiled libraries (cypari2, cysignals, gmpy2, fpylll, pplpy) and requires substantial disk space for building from source. Maintenance is active with a recent release 102 days ago, supporting Python 3.12–3.14.
Requires Python 3.12–3.14; building from source demands substantial free disk space, a C/Fortran compiler (gfortran on macOS via Homebrew), and sufficient RAM. macOS Apple Silicon (M1, M2, M3, M4) users must ensure clean /usr/local directory.
License in practice
Licensed under GPL-2.0-or-later (copyleft). Any derivative work or distribution must comply with GPLv2+ terms, including source code availability. Suitable for academic and open-source projects; proprietary software integration requires careful legal review.
Quickstart
from sage.all import *
# Example: symbolic computation
x = var('x')
equation = x**2 + 2*x + 1
factored = factor(equation)
print(factored) # Output: (x + 1)^2
Verify before relying
- Whether pre-built binaries or conda packages reduce installation friction compared to source builds
- Performance characteristics and typical memory requirements during runtime
- Compatibility with specific Linux distributions beyond the general 'major distributions' claim
- Exact disk space requirements for runtime versus build-time operations
Package facts
| License | GPL-2.0-or-later copyleft |
| Python support | Supports the current Python release <3.15,>=3.12 |
| Install friction | High. Source build required |
| Runtime dependencies | 28 packagesconway-polynomialscypari2sixcysignalscythonfpylllgmpy2ipykernelipythonipywidgetsjupyter-clientmatplotlibmemory_allocatormpmathnetworkxnumpypexpectpillowplatformdirspplpyprimecountpyptyprocessrequestsscipysphinxsympypkgconfigtraitlets |
| Maintenance | Actively maintained 102 days since the last release |
| First released | |
| Downloads | 74,258 / month, #14,857 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 6 - MatureIntended Audience :: EducationIntended Audience :: Science/ResearchOperating System :: MacOS :: MacOS XOperating System :: POSIXProgramming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: Implementation :: CPythonTopic :: Scientific/Engineering :: Mathematics |
Evidence: sagemath-10.9.tar.gz
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “open source computer algebra system”
- sagemathSageMath is a comprehensive open-source mathematics software system…
- symenginePython wrappers for SymEngine, a fast C++ symbolic manipulation…
- sympySymPy is a Python library for symbolic mathematics, performing…
Give your agent the search over MCP, or paste the wish link into any chat.
More Mathematics packages
NetworkX provides data structures and algorithms for creating, analyzing, and manipulating graphs and networks, supporting everything from simple undirected graphs to complex directed and weighted networks.
kiwisolver is a Python binding to a fast C++ implementation of the Cassowary constraint solver, enabling you to solve systems of linear constraints and inequalities.
Install it if you need to solve constraint systems; skip it if you only need simple linear algebra.
SymPy is a Python library for symbolic mathematics, performing algebraic manipulation, calculus, equation solving, and mathematical expression simplification without numerical approximation.
ContourPy calculates contours of 2D quadrilateral grids using C++11 algorithms wrapped in Python, offering serial and multithreaded implementations without requiring Matplotlib as a dependency.
PyTorch provides GPU-accelerated tensor computation and automatic differentiation for building and training deep neural networks in Python.
onnxruntime loads and executes Open Neural Network Exchange (ONNX) models with a focus on inference performance across CPUs and accelerators.
Install it if you have ONNX models to run in production or development.
See also passagemath-categories · passagemath-objects · cypari2 · passagemath-homfly · passagemath-gap · audmath · Theano · fpylll · numpy