Series: Artificial Intelligence

Install Multiple Python Versions on Mac

A condensed walkthrough with instructions and screenshots

David Littlefield
Level Up Coding
Published in
6 min readMar 7, 2021

--

Image by Cheng Feng

The expanded guide uses definitions of terminology and commands to help you learn what’s happening.

Open Terminal:

  1. Press “Command ⌘ + Spacebar”
  2. Enter “Terminal”
  3. Press “Return”

Check the Default Version:

  1. Copy the command from below these instructions
  2. Paste the command into Terminal
  3. Press “Return”
python --version

Check the Executable File:

  1. Copy the command from below these instructions
  2. Paste the command into Terminal
  3. Press “Return”
which python

Install Homebrew:

  1. Copy the command from below these instructions
  2. Paste the command into Terminal
  3. Press “Return”
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

Install Pyenv:

  1. Copy the command from below these instructions
  2. Paste the command into Terminal
  3. Press “Return”
brew install pyenv

--

--

From: Non-Technical | To: Technical Founder | Writes: To Make It Easier For Everyone | Topics: #Startups #How-To #Coding #AI #Machine Learning #Deep Learning