There are two ways to install the Python GPIO
Method 1: Download and install / build it yourself:
To copy it to your Raspberry Pi:
scp -rp RPi.GPIO-0.5.3a pi@[ip address of pi]:/home/pi/Documents/RPi.GPIO/If you want to build your own version from this downloaded copy, make
sure that you have the Python development source installed first!
On Raspbian:
$ sudo apt-get install python-dev
$ sudo python setup.py install
Method 2: Raspbian repository
If you are using Raspbian, all you need to do to install the latest release is:
$ sudo apt-get update
$ sudo apt-get dist-upgrade
$ sudo apt-get install python-rpi.gpio python3-rpi.gpio
No comments:
Post a Comment