Installing PIL to use with Django on Mac OS X

后端 未结 9 922
梦如初夏
梦如初夏 2020-12-13 21:40

I\'m really annoyed by installation of PIL (Python Imaging Library) on Mac OS X 10.6. Does anyone have it installed and could post the recipe here? I\'ve tried a lot of them

9条回答
  •  天涯浪人
    2020-12-13 21:52

    Yes, I have issues with PIL on 10.6.6 too, homebrew and easy_install.

    The easiest solution for me was to easy_install PIL / pip install PIL, navigate to /Library/Python/2.6/site-packages/, and symlink the PIL-1.1.7-.....egg file to PIL

    ln -s PIL-................egg PIL
    
    
    >>> import PIL
    >>> from PIL import Image
    # no more problems.
    

    Edit: These days, I try to use Pillow, a library built to help install PIL. Try pip install pillow - can't hurt!

提交回复
热议问题