How to install Python3 on Mac

# Step 1: install brew

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

# Step 2: install python by brew

brew install python

# Step 3: Check Python Version

python -V    # or python --version

# If output error ( zsh: command not found: python )

# Step 4: Set alias of "python3" as "python" as below:

echo 'alias python=python3' >> ~/.zshrc

source ~/.zshrc

 

Scroll to Top