Can't install PIL after Mac OS X 10.9

前端 未结 28 1090
长情又很酷
长情又很酷 2020-11-28 17:41

I\'ve just updated my Mac OS to 10.9 and I discovered that some (all?) of my Python modules are not here anymore, especially the Image one.

So I try to execute

28条回答
  •  囚心锁ツ
    2020-11-28 18:20

    sudo ln -s /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers/X11/ /usr/local/include/X11
    

    helps for me! os x 10.9

    pip install pillow
    

    but! after pip install ...

    *** ZLIB (PNG/ZIP) support not available
    

    and finally i fix it by running:

    xcode-select --install
    

    then reinstall pillow

    pip install pillow
    
    PIL SETUP SUMMARY
        --------------------------------------------------------------------
        version      Pillow 2.2.1
        platform     darwin 2.7.5 (default, Aug 25 2013, 00:04:04)
                     [GCC 4.2.1 Compatible Apple LLVM 5.0 (clang-500.0.68)]
        --------------------------------------------------------------------
        --- TKINTER support available
        --- JPEG support available
        --- ZLIB (PNG/ZIP) support available
        --- TIFF G3/G4 (experimental) support available
        --- FREETYPE2 support available
        --- LITTLECMS support available
        --- WEBP support available
        --- WEBPMUX support available
        --------------------------------------------------------------------
    

提交回复
热议问题