set python 3.8 5 as default mac code example
Example 1: which python mac
$ brew update && brew upgrade python
Example 2: mac catallina python3
$ brew install pyenv
$ brew update && brew upgrade python
$ brew install pyenv