http://surfero.blogspot.com/2017/05/orange-pi-2g-iot-referencias.html
The RPi.GPIO module is installed by default in Raspbian. To make sure that it is at the latest version:
$ sudo apt-get update
$ sudo apt-get install python-rpi.gpio python3-rpi.gpio