Menu

Command Palette

Search for a command to run...

Python Setup

This section will cover how to install Python.

Overview

This section shows you how to install Python 3.12.10 on macOS, Windows, and Linux.

Homebrew is the best way to install Python on macOS.

Check for Homebrew

Run the following command to check if Homebrew is already installed:

brew --version

If you see a version number, you can skip to Step 5.
If you see command not found: brew, proceed to the next step.

Install Homebrew

Run the following installation script from brew.sh:

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

You may be prompted for your macOS password.

Add Homebrew to Your PATH

After installation, watch for this warning:

Warning: /opt/homebrew/bin is not in your PATH.
Instructions on how to configure your shell for Homebrew
can be found in the 'Next steps' section below.

If you see that message, run the following to configure your shell:

echo 'eval $(/opt/homebrew/bin/brew shellenv)' >> ~/.zprofile
eval $(/opt/homebrew/bin/brew shellenv)

This ensures the brew command will work the next time you open your terminal.

Confirm Homebrew Installation

Restart your terminal and run:

brew --version

You should see a version number confirming it's correctly installed.

Install Python 3.12.10

Now install Python with:

brew install python@3.12

If the output mentions conflicting files or says it can't link python@3.12, run:

brew link --overwrite python@3.12

Confirm Python Version

Verify the installation with:

python3.12 --version

You should see:

Python 3.12.10

Next Steps

Now that Python 3.12.10 is installed, you're ready to install Aegis.

If you run into issues, don’t hesitate to reach out to a TA.