Necessary Packages

This guide is based on Debian's "Wheezy" release for Raspberry Pi. It was made available in Mid July 2012. The following items must be installed in order to utilize the Raspberry Pi's GPIO pins.

Add the latest dev packages for Python (2.x):

$ sudo apt-get install python-dev
Upgrade distribute (required for RPi.GPIO 0.3.1a) - [No image for this one]
$ sudo apt-get install python-setuptools
$ sudo easy_install -U distribute
$ sudo apt-get install python-pip

Install rpi.gpio (0.3.1a) or later:

$ sudo pip install rpi.gpio
This guide was first published on Aug 17, 2012. It was last updated on Aug 17, 2012. This page (Necessary Packages) was last updated on Nov 18, 2015.