Python PIL cannot locate my “libjpeg”

前端 未结 5 1612
长发绾君心
长发绾君心 2021-02-05 21:51

I cannot use PIL because it cannot find my libjpeg!

First, I installed PIL default. And when I ran the selftest.py, it gave me:

IOError: dec         


        
5条回答
  •  南旧
    南旧 (楼主)
    2021-02-05 22:40

    You need the libjpeg headers as well, not only the library itself. Those packages are typically called something ending in headers or dev, depending on what distribution you have.

提交回复
热议问题