If you are using Raspbian, all you need to do to install the latest release is:
$ sudo apt-get install python-rpi.gpio
   or
$ sudo apt-get install python3-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
   or
$ sudo apt-get install python3-dev

To install the module:

$ sudo python setup.py install
  or
$ sudo python3 setup.py install
