step 1
Open terminal and write
open ~/.bash_profile
step 2
Put external environment variable
export
PATH=${PATH}:/Library/Frameworks/Python.framework/Versions/3.6/bin
step 3
Rename python
alias
python=”/Library/Frameworks/Python.framework/Versions/3.6/bin/python3.6”
step 4
Close the file and and run
~/.bash_profile
in the terminal.
step 5
Check the version of python if changed
python –version