brew install dimpase/tap/<formula>
Or brew tap dimpase/tap and then brew install <formula>.
Or, in a brew bundle Brewfile:
tap "dimpase/tap"
brew "<formula>"SageMath and sagemath-deps have bottles for macOS 26 (Tahoe) on Apple Silicon,
Linux ARM64 and Linux x86-64. Some libraries also have bottles for
macOS 15 (Sequoia) on Intel. Availability varies by formula.
brew install dimpase/tap/sagemath installs sagelib, the sage command and its
Jupyter kernel. It uses the separately bottled sagemath-deps environment, so
updating sagelib does not rebuild its Python dependencies.
On macOS, the tap's Accelerate variants of NumPy and SciPy conflict with the
corresponding core formulae. If Homebrew reports a conflict, use brew unlink numpy
or brew unlink scipy for the named core formula, then retry the Sage installation.
Unlinking leaves the core package installed in the Cellar.
sagemath-deps provides the native libraries, Python dependencies, data packages
and build tools needed to build sagelib separately. To install these dependencies:
brew install dimpase/tap/sagemath-depsThe Python packages are available to Homebrew Python 3.14 on macOS and Linux,
and also Python 3.13 on macOS. A virtual environment can use these packages with
--system-site-packages:
"$(brew --prefix python@3.14)/bin/python3.14" -m venv --system-site-packages sage-venv
source sage-venv/bin/activate
source "$(brew --prefix sagemath-deps)/share/sagemath-deps/python3.14-env.sh"
# From your Sage checkout:
python -m pip install --no-build-isolation --no-deps -e . \
-Csetup-args=-Dbuild-docs=false -Csetup-args=--wrap-mode=nofallbackThe environment script exposes the native headers, libraries and build tools,
including Cython, that a pip build needs outside Homebrew. It preserves the
active virtual environment's interpreter and tools. Source it again when opening
a new development shell. On macOS, replace 3.14 with 3.13 throughout to use
Python 3.13. The dependency set matches the Sage version in the formula; newer
checkouts may require additional dependencies.
sagemath-docbuild-deps adds Sphinx, the Sage documentation themes and extensions,
Jupyter notebook rendering, and local MathJax assets to sagemath-deps. It supports
the same Python versions and development venvs. It does not include TeX or PDF tools.
After building sagelib in your venv as above:
brew install dimpase/tap/sagemath-docbuild-deps
source "$(brew --prefix sagemath-docbuild-deps)/share/sagemath-docbuild-deps/python3.14-env.sh"
# From your Sage checkout, build the reference manual and tutorial:
python src/build-docs.py --no-pdf-links reference html
python src/build-docs.py --no-pdf-links tutorial htmlThe environment script also exposes Jupyter's rendering templates and MathJax. Packages installed in the venv take precedence over the bundled baseline.
Formula names link to the build recipes; version numbers link to the current bottle releases.
- sagemath 11.0.beta1_2 — Sagelib, the Sage command and Jupyter kernel.
- sagemath-deps 11.0.beta1 — Native and Python dependencies for Sage and development venvs.
- sagemath-docbuild-deps — Additional dependencies for building Sage HTML documentation, including themes and offline MathJax.
- cvxopt 1.3.3 — Convex optimization.
- cypari2 2.2.6 — Python interface to PARI/GP.
- cysignals 1.13.1 — Signal handling for Cython.
- gmpy2 2.3.1 — Python interface to GMP, MPFR and MPC.
- matplotlib-accelerate 3.11.2_2 — Matplotlib with Accelerate on macOS and OpenBLAS on Linux.
- numpy-accelerate 2.5.3 — NumPy with Apple Accelerate (macOS).
- pillow-python313 12.3.0 — Pillow for Python 3.13.
- pplpy 0.9.0 — Python interface to the Parma Polyhedra Library.
- scipy-accelerate 1.18.1 — SciPy with Apple Accelerate (macOS).
- pari 2.19.0_2 — Number theory and computer algebra.
- pari-elldata 20210301 — Cremona elliptic curve data.
- pari-galdata 20080411 — Galois resolvents.
- pari-galpol 20180625 — Galois polynomial database.
- pari-seadata 20090618 — Modular polynomials.
- bliss 0.77 — Graph automorphisms and canonical forms.
- brial 1.2.15_3 — Boolean polynomial algebra, formerly PolyBoRi.
- cliquer 1.23 — Weighted clique searching.
- coxeter3 3.1 — Coxeter groups.
- eclib 20250627_2 — Elliptic curves over Q; mwrank/libec.
- gf2x 1.3.0 — Polynomial arithmetic over GF(2).
- gmp-ecm 7.0.7 — Elliptic curve factorization, with OpenMP.
- iml 1.0.5 — Exact integer linear algebra.
- kenzo 1.1.10 — Topology and homology, as an ECL module.
- lcalc 2.2.2_1 — L-functions.
- libbraiding 1.3.2 — Braid computations.
- libhomfly 1.04 — HOMFLY polynomials of knots and links.
- lrcalc 2.1 — Littlewood–Richardson coefficients.
- m4ri 20260122 — Dense matrices over GF(2), with OpenMP.
- m4rie 20250128 — Dense matrices over GF(2^e), using the tap’s M4RI.
- maxima-ecl 5.49.0_2 — Maxima compiled with ECL.
- mcqd 1.0.2 — Maximum clique computations.
- meataxe 1.0.2_1 — Modular representations, with precomputed field tables.
- planarity 4.0.1.0 — Graph planarity testing and embedding.
- rw 0.10 — Rank-width and rank-decompositions.
- sirocco 2.1.1 — Certified root continuation.
- symmetrica 3.1.0 — Representation theory.
- sympow 2.023.7_1 — Symmetric-power elliptic curve L-functions.
- tachyon 0.99.5.upstream — Ray tracing.
- treedec 0.9.3 — Tree decompositions; Sage’s tdlib package.
SageMath and sagemath-deps use Homebrew core’s m4ri and m4rie, including
through BRiAl. The tap variants above are separate alternatives.
For standalone Maxima plotting, install Gnuplot separately with
brew install gnuplot. Sage’s Matplotlib plotting does not require it.
ecl-fork was disabled on 2026-07-01; use Homebrew core’s
ecl. Its 26.5.5 bottles
remain available as historical releases.
brew help, man brew or check Homebrew's documentation.