Python PIL cannot locate my “libjpeg”

前端 未结 5 1543
长发绾君心
长发绾君心 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:25

    I had the same issue. In my case, I need to set:

    JPEG_ROOT="/usr/lib64/"
    

    instead of:

    JPEG_ROOT="/usr/lib/"
    

    Good luck.

提交回复
热议问题