Installing GPIO under python3
Posted: Wed Aug 06, 2014 2:22 am
Thank you for reading this.
I have successfully installed RPIO under python 2 but I'm having difficulty installing it under python 3. I have installed python3 setuptools and this is how I tried to install RPIO:
pi@raspberrypi ~/RPIO $ sudo python3 setup.py install
The installation starts but ends with the following error:
source/c_gpio/py_gpio.c:28:20: fatal error: Python.h: No such file or directory
compilation terminated.
error: command 'gcc' failed with exit status 1
A Google search shows that there are some problems with python3 setuptools and that installing RPIO under python3 should work.
Is it possible to install RPIO under python 3?
I have successfully installed RPIO under python 2 but I'm having difficulty installing it under python 3. I have installed python3 setuptools and this is how I tried to install RPIO:
pi@raspberrypi ~/RPIO $ sudo python3 setup.py install
The installation starts but ends with the following error:
source/c_gpio/py_gpio.c:28:20: fatal error: Python.h: No such file or directory
compilation terminated.
error: command 'gcc' failed with exit status 1
A Google search shows that there are some problems with python3 setuptools and that installing RPIO under python3 should work.
Is it possible to install RPIO under python 3?