Installing Python 3 on Mac OS X
To install Homebrew, open Terminal
or your favorite OSX terminal emulator and run
1 |
$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" |
The script will explain what changes it will make and prompt you before the installation begins. Once you’ve installed Homebrew, insert the Homebrew directory at the top of your PATH
environment variable. You can do this by adding the following line at the bottom of your ~/.profile
file
1 |
export PATH=/usr/local/bin:/usr/local/sbin:$PATH |
Now, we can install Python 3:
1 |
$ brew install python3 |
This will take a minute or two.