How to Make python3 the Default python on macOS

If you are using zsh, append the following line to your ~/.zshrc file to make an alias for “/usr/local/bin/python”.

alias python="/usr/local/bin/python3"
alias pip="/usr/local/bin/pip3"

If you are using bash, it should be appended to the file ~/.bashrc instead.