Not sure if this is helpful, but under the latest copy of Raspbian I was able to install RPi.GPIO directly from the main repositories using apt-get as follows:
sudo apt-get update
sudo apt-get -y install python-rpi.gpio
If you're running Python 3 (idle3 on the command line) instead of Python 2 (python on the command line) you need to install the RPi.GPIO library with this command instead:
sudo apt-get -y install python3-rpi.gpio
Answer from PiBorg on Stack ExchangeNot sure if this is helpful, but under the latest copy of Raspbian I was able to install RPi.GPIO directly from the main repositories using apt-get as follows:
sudo apt-get update
sudo apt-get -y install python-rpi.gpio
If you're running Python 3 (idle3 on the command line) instead of Python 2 (python on the command line) you need to install the RPi.GPIO library with this command instead:
sudo apt-get -y install python3-rpi.gpio
Assuming you have pip, the python package index installer, which is installed on the latest versions of Raspbian by default
You can use:
sudo pip install RPi.GPIO for Python 2
and
sudo pip-3.2 install RPi.GPIO for Python 3
A little bit late, but as can be found here: http://wiringpi.com/download-and-install/ simply type
sudo apt-get install wiringpi
This installs the gpio command.
sudo pip install won't work, because it is NOT a Python program.
The following answer explains how to install it and also how to get the missing man pages. https://raspberrypi.stackexchange.com/a/51378/8697
Can OctoPrint access the Raspberry PI GPIO ports?
Commandline GPIO commands not working but python works fine
octoprint I2C IO expander
GPIO access without SUDO command.
Videos
» pip install RPi.GPIO