Install RPi.GPIO

The RPi.GPIO python module offers easy access to the general purpose IO pins on all versions of the Raspberry Pi.  The following commands will make sure your copy of Raspbian is up to date and then install a python3 compatible version of RPi.GPIO. 

Download: file
sudo apt-get update
sudo apt-get -y install python-dev python3-rpi.gpio
This guide was first published on Jul 29, 2012. It was last updated on 2018-12-08 16:32:10 -0500. This page (Install RPi.GPIO) was last updated on Dec 08, 2018.