Unicorn hat - fatal error


My unicorn hat was working fine until the other day when somehow the OS was reinstalled and everything I had set up overwritten

Now when running the bash command to install everything for unicorn hat I am getting the following:

rpi_ws281x_wrap.c:130:21: fatal error: Python.h: No such file or directory

include <Python.h>

compilation terminated.

error: comman ‘arm-linux-gnueabihf-gcc’ failed with exit status 1

Getting this after sudo apt-get update/upgrade



the best way to install our libraries is via the one-line installer… but if you want to go down the manual route, then knowing that Python.h is a header provided by the python-dev package may be useful.

… so sudo apt-get install python-dev python3-dev will help.

well, or use the method recommended in the github and live without having to read the small prints ;-)