There is problem managing python version with your package manager. An easy solution is to use pyenv:
- Install pyenv with your package manager. For MacOS, it’s
brew install pyenv
. - Install desired python version:
pyenv install <version>
- Set global python version
pyenv global <version>
- Set up your shell environment for Pyenv, for zsh, add this to your
.zshrc
: