I have install RPi.GPIO 5.3a from here: https://pypi.python.org/pypi/RPi.GPIO
I ran the next code:
sudo python setup.py install
there are no fails on the installing.
I will run the next script:
import RPi.GPIO as GPIO
GPIO.setmode(GPIO.BCM) # set board mode to Broadcom
GPIO.setup(17, GPIO.OUT) # set up pin 17
GPIO.setup(18, GPIO.OUT) # set up pin 18
GPIO.output(17, 1) # turn on pin 17
GPIO.output(18, 1) # turn on pin 18
I see now the next:
ImportError: No module named GPIO
when I have done the following:
sudo apt-get update
sudo apt-get -y install python-rpi.gpio
The importerror does not go away.
I use the raspberry pi 2 with raspbian
pip
) is used to install the modules?