| 1 |
If you are using Raspbian, all you need to do to install the latest release is: |
| 2 |
$ sudo apt-get update |
| 3 |
$ sudo apt-get install python-rpi.gpio python3-rpi.gpio |
| 4 |
|
| 5 |
------------ |
| 6 |
|
| 7 |
If you are not using Raspbian, it is recommended that you install this module using pip: |
| 8 |
$ pip install RPi.GPIO |
| 9 |
or |
| 10 |
$ pip3 install RPi.GPIO |
| 11 |
|
| 12 |
------------ |
| 13 |
|
| 14 |
If you want to build your own version from this downloaded copy, make |
| 15 |
sure that you have the Python development source installed first! |
| 16 |
|
| 17 |
On Raspbian: |
| 18 |
$ sudo apt-get install python-dev python3-dev |
| 19 |
|
| 20 |
To install the module: |
| 21 |
|
| 22 |
$ python setup.py install |
| 23 |
or |
| 24 |
$ python3 setup.py install |