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

前端 未结 5 1959
故里飘歌
故里飘歌 2021-01-31 01:09

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

pip install pillow

This is the output from the

5条回答
  •  北荒
    北荒 (楼主)
    2021-01-31 01:21

    @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
    

提交回复
热议问题