No such file or directory "limits.h" when installing Pillow on Alpine Linux No such file or directory "limits.h" when installing Pillow on Alpine Linux python python

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


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


@zakaria answer is correct, but if you stumble upon

fatal error: linux/limits.h: No such file or directory

then you need the package linux-headers (notice the prefix linux before limits.h

apk add linux-headers


limits.h is located in libc-dev:

apk add libc-dev