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 Exchange
» pip install RPi.GPIO
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
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
python - How to install RPi.GPIO to windows - Stack Overflow
Trouble installing RPi.GPIO
[Solved] Cannot install rpi.gpio
RPI-GPIO Integration
Videos
Hello people of reddit!
I'm building a travel router with OpenWRT on a spare Pi 3B+ and I want to add an SSD1306 based oled display plus a shutdown button but both of them require the RPi.GPIO library.
I've installed all of the Python dependencies but I keep getting this error when I try to install the RPi.GPIO Python library. Here is a link to my post on the openwrt forums that shows the error.
Any idea what I'm doing wrong?