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
Discussions

Can OctoPrint access the Raspberry PI GPIO ports?
You need to install something like WiringPi . Then you can use a bunch of GPIO commands https://projects.drogon.net/raspberry-pi/wiringpi/the-gpio-utility/ And OctoPi can run whatever script you want, either any way you normally would with a Pi or by creating a basic Octoprint plugin script http://docs.octoprint.org/en/master/plugins/gettingstarted.html I use this to trigger a power relay, trigger an air heater, read an inductive probe. Pretty much whatever you want. What do you have in mind? More on reddit.com
🌐 r/3Dprinting
16
17
September 2, 2016
Commandline GPIO commands not working but python works fine
No error output with your linux commands? My guess, without knowing more: sudo apt-get install wiringpi gpio -v gpio readall If you are still getting the error let me know More on reddit.com
🌐 r/raspberry_pi
5
5
April 25, 2021
octoprint I2C IO expander
You can use Octoprint gcode system commands plugin to connect a gcode assignment to a script that manipulates your gpio an then assign the gcode command to a button in Octoprint. More on reddit.com
🌐 r/octoprint
2
6
March 3, 2021
GPIO access without SUDO command.
Can we back up a minute? You posted an interesting error. So let me pose a question: Does your code work WITH sudo? I'm asking because you said you made yourself root and it still didn't work. More on reddit.com
🌐 r/raspberry_pi
3
5
May 8, 2016
🌐
Embeddedpi
embeddedpi.com › documentation › gpio › mypi-industrial-raspberry-pi-using-gpio-via-command-line
Using GPIO Via Command Line or C libraries - MyPi Industrial Raspberry Pi
The standard MyPi image comes with this pre-installed and ready to go, the gpio executable command line program installs into /usr/local/bin and the source code has been stored in /opt/wiringPi
🌐
gpiozero
gpiozero.readthedocs.io › en › stable › installing.html
1. Installing GPIO Zero — gpiozero 2.0.1 Documentation
In order to use GPIO Zero’s remote ... information. This documentation is also available for offline installation like so: pi@raspberrypi:~$ sudo apt install python-gpiozero-doc...
🌐
PyPI
pypi.org › project › RPi.GPIO
RPi.GPIO · PyPI
Download URL: RPi.GPIO-0.7.1-cp27-cp27mu-linux_armv6l.whl ... Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/30.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.7 tqdm/4.62.3 importlib-metadata/4.8.1 keyring/23.2.1 rfc3986/1.5.0 colorama/0.4.4 CPython/3.10.2 · See more details on using hashes here. ... AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page
      » pip install RPi.GPIO
    
Published   Feb 06, 2022
Version   0.7.1
🌐
The Pi Hut
thepihut.com › home › the pi hut tutorials › how to install the gpio python library
How to Install the GPIO Python Library
July 3, 2019 - If a newer version has been released replace the version number with the current version: wget http://pypi.python.org/packages/source/R/RPi.GPIO/RPi.GPIO-0.5.3a.tar.gz ... 3. Change to the newly created directory, again remember to change the ...
🌐
SparkFun Learn
learn.sparkfun.com › tutorials › raspberry-gpio › all
Raspberry gPIo - SparkFun Learn
In this tutorial we'll show two ... the Raspberry Pi's GPIO pins: python and C. Here's a quick overview of what's covered: GPIO Pinout -- An overview of the Pi's GPIO header. ... RPi.GPIO API -- An overview of the Python functions you can use to drive GPIO. RPi.GPIO Example -- An example Python script that shows off both input and output functionality. ... WiringPi Setup and Test -- How to install WiringPi and then take it for a test drive on the command ...
Find elsewhere
🌐
Embedded Computing Design
embeddedcomputing.com › technology › processing › interface-io › quick-start-raspberry-pi-gpio-terminal-interface
Quick Start: Raspberry Pi GPIO Terminal Interface - Embedded Computing Design
February 17, 2022 - In this guide, I’ll take you through how to set up a Raspberry Pi from a blank SD card and how to turn on GPIO pins remotely via a terminal. I’m using the MacOS terminal, but other programs, such as PuTTY should work just as well.
🌐
SourceForge
sourceforge.net › home › browse › raspberry-gpio-python › wiki
raspberry-gpio-python / Wiki / install
$ sudo apt-get install python-dev python3-dev $ sudo apt-get install mercurial $ sudo apt-get install python-pip python3-pip $ sudo apt-get remove python-rpi.gpio python3-rpi.gpio $ sudo pip install hg+http://hg.code.sf.net/p/raspberry-gpio-python/code#egg=RPi.GPIO $ sudo pip-3.2 install ...
🌐
Raspberry Pi Forums
forums.raspberrypi.com › board index › programming › python
installing RPi.GPIO and vs code issues - Raspberry Pi Forums
December 13, 2023 - Hi neillgl thank you for taking ... with the Raspberry Pi Desktop (Recommended) Released: 2023-12-05 ... If you're using a venv then don't use sudo. Activate the venv and then pip install the packages, without sudo. ... I used the following command in a .ipynd file: %pip install RPi.GPIO...
🌐
Pi My Life Up
pimylifeup.com › home › the basics of the raspberry pi gpio pins
The Basics of the Raspberry Pi GPIO Pins - Pi My Life Up
July 22, 2024 - If you do not have the GPIO package installed, you can install it by running the following command. ... Setting up the I2C pins on the Raspberry Pi is super easy and will only take a couple of minutes.
🌐
Linux Hint
linuxhint.com › install-setup-rpi-gpio-raspberry-pi
How to Install and Setup RPi.GPIO Library on Raspberry Pi
Linux Hint LLC, [email protected] 1210 Kelly Park Circle, Morgan Hill, CA 95037 Privacy Policy and Terms of Use
🌐
Gentoo Wiki
wiki.gentoo.org › wiki › Raspberry_Pi_Install_Guide › Raspberry_Pi_GPIO
Raspberry Pi Install Guide/Raspberry Pi GPIO - Gentoo wiki
sys-apps/i2c-tools installs a command line program "i2cdetect". Running that command with the "-l" option will show available i2c buses. The following is example output on a Raspberry Pi 5. ... i2c-1 i2c Synopsys DesignWare I2C adapter I2C adapter i2c-11 i2c 107d508200.i2c I2C adapter i2c-12 ...
🌐
Raspberry Pi Forums
forums.raspberrypi.com › board index › projects › automation, sensing and robotics
GPIO command line tool for RPI5 - Raspberry Pi Forums
February 18, 2024 - Sun Feb 18, 2024 2:34 pm Is there any command line tool (not library) like gpio tool working fine on Raspberry 5? You could just bash script it. That's the route I took for a Pi2B-based automatic nature cam and it was fun to learn.
🌐
Geekworm Wiki
wiki.geekworm.com › How_to_Install_RPi.GPIO_Python_Library
How to Install RPi.GPIO Python Library - Geekworm Wiki
If this version is updated you ... Step 2 – Extract the archive to a new folder · tar -xvf RPi.GPIO-0.7.1.tar.gz · cd RPi.GPIO-0.7.1 · sudo python setup.py install · cd ~ sudo rm -rf RPi.GPIO-0.* This will now mean you can use the library within Python. import RPi.GPIO ...
🌐
Raspberry Pi Forums
forums.raspberrypi.com › board index › community › other languages › français
Activer/Installer le GPIO sur RPI 4 - Raspberry Pi Forums
#!/usr/bin/python3 # -*- coding: utf-8 -* import RPi.GPIO as GPIO import time #on initialise les GPIO en écoute #Attention au choix des ports ; référez-vous au site https://fr.pinout.xyz/ LedPin = 37 # BCM26 #on branche donc la LED sur Pin37 (BCM26) et Pin39 (masse juste à côté) GPIO.setmode(GPIO.BOARD) # Numéro du GPIO selon la numérotation physique GPIO.setup(LedPin, GPIO.OUT) # Activer le mode LedPin en sortie GPIO.output(LedPin, GPIO.HIGH) # Régler LedPin sur haut (+3.3V) pour activer la led def Clignotant(): while True: GPIO.output(LedPin, GPIO.HIGH) # led allumée time.sleep(1)
🌐
Raspberry Pi Forums
forums.raspberrypi.com › board index › community › general discussion
bash: gpio: command not found - Raspberry Pi Forums
October 13, 2021 - also... root@raspberrypi:/home/pi# uname -srv Linux 3.6.11+ #474 PREEMPT Thu Jun 13 17:14:42 BST 2013 ... Perhaps your system has rebooted. You'll need to re-export gpios to create the gpio device directories under /sys/class/gpio. What does ls /sys/class/gpio report?
🌐
gpiozero
gpiozero.readthedocs.io › en › stable › remote_gpio.html
4. Configuring Remote GPIO — gpiozero 2.0.1 Documentation
Next, install GPIO Zero and pigpio with pip: ... The simplest way to use devices with remote pins is to set the PIGPIO_ADDR environment variable to the IP address of the desired Raspberry Pi. You must run your Python script or launch your development environment with the environment variable set using the command line.
🌐
SparkFun Learn
learn.sparkfun.com › tutorials › raspberry-gpio › c-wiringpi-setup
C (WiringPi) Setup - Raspberry gPIo - SparkFun Learn
* --> Raspberry Pi 4 Model B Rev 1.2 * This Raspberry Pi supports user-level GPIO access. Enter the following to remove the wiringPi and configuration files. ... Then type the following for the Pi to remove all locations that remember wiringPi. ... As long as you have Git installed, these commands should be all you need to download and install Wiring Pi.
🌐
Medium
ma2shita.medium.com › how-to-use-raspi-gpio-instead-of-gpio-of-wriring-pi-af2ab00eda57
How to use `raspi-gpio` instead of `gpio` of Wriring Pi | by Kohei "Max" Matsushita | Medium
February 10, 2022 - If you have a Buster-based Raspberry Pi OS, you can install it with apt install wiringpi. I believe, it’s better to use raspi-gpio because raspi-gpio works on both Buster and Bullseye Raspberry Pi OS.