mac use python 3 default code example
Example 1: use python3 as default mac
ln -s -f /usr/local/bin/python3.7 /usr/local/bin/python
Example 2: how to change mac default python version
$ echo -e 'if command -v pyenv 1>/dev/null 2>&1; then\n eval "$(pyenv init -)"\nfi' >> ~/.zshrc