Can't get PIL to correctly install on Ubuntu 12.04

后端 未结 3 1640
时光说笑
时光说笑 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:03

    I've experienced problems with PIL and Pillow installed together.

    If I install PIL using apt-get install python-imaging and then run selftest.py I get (which is fine):

    --- PIL CORE support ok
    *** TKINTER support not installed
    --- JPEG support ok
    --- ZLIB (PNG/ZIP) support ok
    --- FREETYPE2 support ok
    --- LITTLECMS support ok
    

    If I then install Pillow through sudo pip install Pillow and then re-run selftest.py I get:

    --- PIL CORE support ok
    *** TKINTER support not available
    (Tcl/Tk 8.5 libraries needed)
    --- JPEG support available
    --- ZLIB (PNG/ZIP) support available
    *** TIFF G3/G4 (experimental) support not available
    *** FREETYPE2 support not available
    *** LITTLECMS support not available
    *** WEBP support not available
    

    In order to solve the multiple "supports not available" and get back to the initial status I just uninstalled Pillow.

提交回复
热议问题