--- id: sagemath version: "10.9" license: GPL-2.0-or-later license_treatment: copyleft maintenance: active --- # sagemath — Sage: Open Source Mathematics Software: Standard Python Library License: copyleft · Maintenance: active · Downloads: 74.3K/mo ## 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 above — verify before relying. SageMath is a comprehensive open-source mathematics software system providing symbolic computation, numerical analysis, and mathematical visualization across algebra, calculus, number theory, and related fields. 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 pip install sagemath uv add sagemath poetry add sagemath ## Installing sagemath 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. 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 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. 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_current - Install friction: high - Maintenance: active - Downloads: 74.3K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags open source computer algebra system, symbolic mathematics software, mathematical computation environment, alternative to commercial math software, Python-based math toolkit, numerical and symbolic math, mathematics visualization and plotting, computer-algebra, scientific-computing, open-source-alternative [View on SkillFed](https://skillfed.io/packages/sagemath) · [View on PyPI](https://pypi.org/project/sagemath/)