Install pyenv on MacOS

For Python in macOS, use pyenv:

brew install pyenv

To install a specific Python version, run:

pyenv install <version>

To select a version for every command run with the current folder:

pyenv local 3.5.0

Note that you must update PATH in your environment to find pyenv’s python3 before any other:


To list available versions:

pyenv versions

See for more information.

Leave a Reply

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