Skip to content

Instantly share code, notes, and snippets.

@calumroy
Last active August 29, 2015 14:02
Show Gist options
  • Save calumroy/dbeda107b0de8ce92f1f to your computer and use it in GitHub Desktop.
Save calumroy/dbeda107b0de8ce92f1f to your computer and use it in GitHub Desktop.
PyAndroid

###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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment