install python shell
#To install python from shell you need to install homebrew first:
$ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
#Make sure you have the latest version:
$ brew update && brew upgrade
#Then just run
$ brew install python3