Installing Python3 on macOS from the Terminal

  1. Knowledge Base
  2. Programming
  3. Installing Python3 on macOS from the Terminal

There are two ways to install Python3 on macOS 10.15 and above. The first way is to allow the macOS to prompt you to perform the install via the command line terminal invoking xcode-select and the second way is to directly download the binary installation files from The following instructions will walk you through installing from the macOS terminal. For instructions for installing from follow the instructions here.

Installing Python3 from the macOS Terminal

  1. Click the spyglass/magnifying glass icon in the top right of your macOS screen to open up the Spotlight Search field.
  2. Type Terminal into the search field and double-click on the black terminal app icon.
  3. At the terminal prompt type in:
    The following output will be displayed
    xcode-select terminal output
    and a dialogue will open:
    Dialogue Window asking macOS user to install python3
    Click the Install button.
  4. Once installed you may use the command which python3 to confirm the installed location. You may need to reference the full python3 location when writing executable scripts.
    which python3 comman to find out where python3 resides
  5. To invoke the python3 interactive interpreter, run the following command:
    The interactive python3 interpreter sill display the current version information:
    invoke python interactive interpreter

Leave a Reply

Your email address will not be published. Required fields are marked *