In the " Getting Python ready for the RFID RC522" part
I did Step 1 : Successful
Skipped Step 2 cause I already have Python installed in my RPi
Step 3: Successful
Code: Select all
cd ~
git clone https://github.com/lthiery/SPI-Py.git
Code: Select all
cd ~/SPI-Py
sudo python setup.py install
Code: Select all
running install
running build
running build_ext
building 'spi' extension
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -c spi.c -o build/temp.linux-armv7l-2.7/spi.o
spi.c:20:20: fatal error: Python.h: No such file or directory
#include <Python.h>
^
compilation terminated.
error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1