Installing PIL to use with Django on Mac OS X

后端 未结 9 941
梦如初夏
梦如初夏 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 22:04

    It might be easier to pinpoint your issue if you can elaborate on what you tried and what error messages were generated with those attempts. Here's some probable solutions that you may or may not have attempted:

    pip install pil
    

    if you dont have pip, try

    easy_install pil
    

    Since you're on the Mac, you can also get HomeBrew (a package manager) and then try

    brew install pil
    

    or Macports has a PIL package here.

    Or build from source?

    More importantly, the PIL README states,

    *--------------------------------------------------------------------

    Additional notes for Mac OS X

    On Mac OS X you will usually install additional software such as libjpeg or freetype with the "fink" tool, and then it ends up in "/sw". If you have installed the libraries elsewhere, you may have to tweak the "setup.py" file before building.*

    That could be your issue. Good luck!

提交回复
热议问题