Can't get PIL to correctly install on Ubuntu 12.04

后端 未结 3 1623
时光说笑
时光说笑 2021-01-05 12:18

I\'m using Ubuntu 12.04 and I\'m in PIL-hell. I\'ve tried every suggestion I can find online for ways to install PIL, but I have no luck. I know for a fact I have every de

3条回答
  •  有刺的猬
    2021-01-05 13:13

    If you are running on Ubuntu 64 bit another step may be needed in addition to Marwan ones:

    PIL setup looks for libraries in /usr/lib but Ubuntu 64 places them on /usr/lib/x86_64-linux-gnu. A working solution is to create links:

    sudo ln -s /usr/lib/x86_64-linux-gnu/libz.so /usr/lib
    sudo ln -s /usr/lib/x86_64-linux-gnu/libjpeg.so /usr/lib
    sudo ln -s /usr/lib/x86_64-linux-gnu/libfreetype.so /usr/lib
    

提交回复
热议问题