Series: Artificial Intelligence
Install Multiple Python Versions on Mac
A condensed walkthrough with instructions and screenshots
Published in
6 min readMar 7, 2021
The expanded guide uses definitions of terminology and commands to help you learn what’s happening.
Open Terminal:
- Press “Command ⌘ + Spacebar”
- Enter “Terminal”
- Press “Return”
Check the Default Version:
- Copy the command from below these instructions
- Paste the command into Terminal
- Press “Return”
python --version
Check the Executable File:
- Copy the command from below these instructions
- Paste the command into Terminal
- Press “Return”
which python
Install Homebrew:
- Copy the command from below these instructions
- Paste the command into Terminal
- Press “Return”
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Install Pyenv:
- Copy the command from below these instructions
- Paste the command into Terminal
- Press “Return”
brew install pyenv