The Raspberry Pi GPIO(General Purpose Input Output) module is already installed by default in Raspbian Operating System. Just to make it sure that it is at the latest version. just follow the instructions below.
1 2 |
$ sudo apt-get update $ sudo apt-get install python-rpi.gpio python3-rpi.gpio |
Installing the later development version