###Homebrew Mac First you need Homebrew installed.
Requirements:
- OS X 10.5 or higher 2
- Command Line Tools for Xcode:
xcode-select --install, https://developer.apple.com/downloads
- A Bourne-compatible shell for installation (e.g. bash or zsh) 4
Install Homebrew:
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
###Edit bashrc In order to use homebrew to install packages brew needs to be added to the users path.
sudo nano ~./bashrc
Add the following to the bashrc file:
export PATH=/usr/local/bin:/usr/local/sbin:$PATH
###Install Python
brew install python
Check that the installed version of python is being used and not the default version that comes with OSX:
which python
Should return
/usr/local/bin/python
###Install or upgrade Pip
Pip is used to install python packages.
This is installed with python.
python get-pip.py
pip install -U pip