On Mac OS

Mac OS ships with a Python installation which is used by internal services. You should not mess up with this version.

Homebrew (or just brew) is a package manager for Mac OS that offers a lot of useful libraries and software. We will use it to install Python on Mac OS.

Installing Homebrew

You can install Python directly from Homebrew or to use Pyenv. Either way, you will need Homebrew installed. Just follow the instructions here.

Installing Python from brew

If you don’t like pyenv or just need only one version of Python3 or Python2 you can use Homebrew.

  1. Install Python3 using an Homebrew formula (also works for Python2)
brew install python3

Optional scientific packages can be installed also with Homebrew. More information:

Warning

These links may not be up-to-date. Please read carefully.