how to set up a new python version in mac code example
Example 1: how to set default python version in macos
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