Install Python Module RPi.GPIO

The RPi.GPIO python module offers easy access to the general purpose IO pins on the Raspberry Pi. 

To get the latest version of this, you can take a little diversion to follow the instructions in Adafruit's Raspberry Pi Lesson 4. GPIO Setup.

If you're comfortable, you can probably skip the lesson above and issue the following command in a terminal window:

sudo apt-get install python-dev python-rpi.gpio
This guide was first published on Jul 29, 2012. It was last updated on Oct 19, 2018. This page (Install Python Module RPi.GPIO) was last updated on May 04, 2015.