Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install PIL in system library using homebrew?

In a new SnowLeopard install, I'd like to use homebrew to install PIL. However the recipe installs PIL under cellar instead of in /Library/Python/2.6/site-packages. Is there a way to change the install directory?

like image 443
KentH Avatar asked Apr 05 '11 03:04

KentH


1 Answers

Instead of installing pip and another PIL, you can just make a symlink

brew install pil
ln -s /usr/local/Cellar/pil/1.1.7/lib/python2.7/site-packages/PIL /Library/Python/2.7/site-packages/PIL

Tested on Lion, on Snow Leopard, you may need to change paths to use /python2.6 /Python/2.6.

like image 70
Frank Avatar answered Sep 19 '22 06:09

Frank