install using Homebrew
brew update
brew install pyenv
Configure your Mac's environment
Depends on your shell (mine was zsh)
echo 'eval "$(pyenv init -)"' >> ~/.zshrc
Activate the change
source ~/.zshrc
Install a version of Python
pyenv install python3.4.10
Set your environment python
pyenv local python3.4.10
Top comments (1)
I've always used conda for different versions on my local machine, but within CI all of the "Marketplace" actions use pyenv. This might be one that I consider next time I setup a dev machine.