Skip to main content
Version: v1.1

Install Python - macOS

Supported operating systems

  • macOS Ventura 13
  • macOS Sonoma 14
  • macOS Sequoia 15

Other OS versions might work but haven't been tested.

Download Python​

Download latest Python from the official website.

info

Even if you've already installed Python from the Apple repository, or don't know the source of the Python installation, we recommended to install Python from the official website.

This prevents possible errors during Python package installation and issues related to the environment variables.

Install Python​

Proceed installing the downloaded Python.

Prepare Python environment​

Virtual environment is strongly recommended to avoid dependency conflicts between different versions of Python.

Create Python virtual environment​

Run below command.

python3 -m venv ~/.aos/venv
Example output

→ ~ python3 -m venv ~/.aos/venv → ~

Verify​

Run below command to confirm the installed Python version is 3.9 or later in this virtual environment (venv).

~/.aos/venv/bin/python3 -V

python version