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
There is a packaging fork of PIL that attempts to make it easier to install and support on many modern platforms, including OS X:
You should be able to install it on OS X with pip or easy_install (assuming you have XCode). If you have any trouble, please open a ticket here:
Hey check out this article, worked wonders for me on Snow Leopard.
I'd also recommend using libjpeg 0.6 instead of 0.7 noted in the article.
Good luck.
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!
I have issues installing PIL with brew and easy_install on my Mac too. My solution is to download source code from http://www.pythonware.com/products/pil/, extract the tar ball and use
python setup.py install
to compile and install the package.
Following steps worked for me:
$ brew install pip
$ export ARCHFLAGS="-arch i386 -arch x86_64"
$ pip install pil
After fresh OS installation tried these steps:
After that I was able to load and save jpeg files... I know that this issue has a lot of different solutions and I'm not 100% my way will work for other, but it's worth to try if you just bumping your head in to the wall :)