Installing multiple Python versions in Mac (OS X)

In this tutorial I am assuming Home Brew is installed. Installing pyenv + pyenv-virtualenv Go to your terminal and install pyenv and the external libraries needed by Python: brew update brew install pyenv openssl readline sqlite3 xz zlib Add “pyenv init” to your shell to enable shims and autocompletion running the following command: Install the pyenv-virtualenv plugin so you can create virtual environments for …