1,which python3.7
2,vim ~/.bash_profile
3,
#setting path for python3.7
PATH=”/usr/local/bin:${PATH}”
export PATH
PATH=”/Library/Frameworks/Python.framework/Versions/3.7/bin:${PATH}”
export PATH
alias python="/Library/Frameworks/Python.framework/Versions/3.7/bin/python3.7"
alias pip="/Library/Frameworks/Python.framework/Versions/3.7/bin/pip3.7"
4,
source ~/.bash_profile