Skip to content
Advertisement

No such file or directory “limits.h” when installing Pillow on Alpine Linux

I’m running alpine-linux on a Raspberry Pi 2. I’m trying to install Pillow via this command:

JavaScript

This is the output from the command:

JavaScript

I think this is probably the relevant section:

JavaScript

My research shows it’s probably something with the header files. I have installed these:

JavaScript

Advertisement

Answer

Alpine Linux uses musl libc. You probably need to install musl-dev.

Advertisement