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
[deleted by user]
Trouble with RPi.GPIO
Problem with PLUGINS *RPio_GPIO* This module can only be run on a RASPBERRY
Pycharm. Programming for Pi in Python on PC. Are libraries required?
Videos
You just need to upgrade the RPi package by the following command
Copysudo pip install --upgrade RPi.GPIO
If you are using python 3 the command should be like this
Copysudo pip3 install --upgrade RPi.GPIO
You have to install the module first on your Raspberry. Unfortunately I don't have one to test but according this link the command for python 3 should be (you may have to load first the package on the raspberry):
Copysudo apt-get -y install python3-rpi.gpio
I hope it helps,
» pip install RPi.GPIO