Install Python Imaging Library (PIL) on OS X 10.6 (Snow Leopard)


I look a bit painful to do this at first, but here is a very simple solution.

  1. Install brew
  2. run ‘brew instal PIL’
  3. Brew install PIL at /usr/local/Cellar/pil/1.1.7/lib/python2.6/site-packages
  4. Symlink the PIL site-packages to your Python site-packages in /Library/Python/2.6/site-packages

    ln -s /usr/local/Cellar/pil/1.1.7/lib/python2.6/site-packages/PIL /Library/Python/2.6/site-packages/PIL

Warning: count(): Parameter must be an array or an object that implements Countable in /home/public/blog/wp-includes/class-wp-comment-query.php on line 399

There are 3 comments in this article:

  1. 6/05/2011alec say:

    so.. brew is like the apt-get command on debian linux? if so that would make my life a lot easier.

  2. 8/05/2011Bingimar say:

    Finally a solution that works!!

  3. 5/07/2011Hank say:

    @alec `brew` is more like `emerge` on Gentoo (it’s source-based).

Write a comment: