This is a binary release of SageMath-10.4 for macOS 10.12 and newer. It is packaged as a signed and notarized macOS application. There are two disk images in the assets, one for Intel CPUs and one for Apple's Arm CPUs (e.g. M1, M1X or M2) . Please download the correct one for your system. (If you are not sure, check the "processor" line in the "About This Mac" dialog under the Apple menu.)
To install, download one of the disk images in the assets below, open it, and drag the SageMath icon to the Applications folder as indicated. Then double-click the recommended pkg file to install some helpful extras. Specifically, the Installer package creates an executable named /usr/local/bin/sage which can be used to run sage from a script or a shell session, as well as a Jupyter kernel specification in /usr/local/share. It also copies the sagetex.sty file into a subdirectory of /usr/local/texlive where it will be found by the TeXLive latex compiler. The jupyter kernel specification should be recognized by other apps that launch Jupyter or JupyterLab.
The magic command %pip can be used at the sage prompt to install additional packages via pip. These packages will be installed in the directory ~/Library/Sage-10-4
. (This is a change from 10.3. Now each version of sage has its own location for installing pip packages.)
The -i option is not supported by the sage executable in this app, but many optional Sage packages are included. Note that GAP packages which are not included in the gap_packages spkg can be installed from within sage by using the PackageManager GAP package. These will be installed in the directory ~/Library/Preferences/GAP. For example, to install the kbmag GAP package run these two commands:
sage: libgap.LoadPackage("PackageManager")
sage: libgap.InstallPackage("kbmag")
The json files in the assets contain the md5 and sha256 hashes of the two disk images.