install python on mac terminal code example
Example 1: mac os install python 3
brew install python3
Example 2: install python in mac
brew install python3
brew install python2
Example 3: how to run mac terminal from python script
from applescript import tell
#set what command you want to run here
yourCommand = 'ls'
tell.app( 'Terminal', 'do script "' + yourCommand + '"')
Example 4: install python 3.4 mac terminal
$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"