Skip to content

macOS high versions (12+) have removed the default Python installation.

  1. Install via Homebrew
bash
brew install python@3.8
  1. Edit ~/.zshrc
bash
vim ~/.zshrc

# python
alias python='/usr/local/bin/python3'
export PATH="/usr/local/opt/python@3.8/libexec/bin:$PATH"
  1. Apply the changes
source ~/.zshrc