Installing PIL on Mac OS X 10.5
These instructions will install PIL properly on Mac OS X 10.5. The instructions are adapted from here.
Go to here and download PIL.
Now we set up the environment so that you can install it.
In Terminal, create a symbolic link for the system’s Python.framework
in the location expected by the pythonmac.org tools, like so:
cd /Library/Frameworks sudo ln -s /System/Library/Frameworks/Python.framework/ Python.framework
Now run the installer. It should not complain and it should install successfully.
The final step installs PIL in your Python site packages.
cd /Library/Python/2.5/site-packages/ echo "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages " > PIL.pth
Test your new PIL install with:
python -c "from PIL import Image"
if you do not get an error, then you have a correct PIL install!
June 23rd, 2009 at 10:59 pm
Thanks for this simple, working instruction. I would have never known to take the steps apart from the clean installation.