Some other folks mentioned issues with installing PIL on OS X and I
previously mentioned some binaries (they work, but you are "stuck"
with Python 2.5).

You can compile your own Python if you have XCode installed and then
you should have no issues installing PIL to your virtualenvs or your
system python.

You can "test" the installation first in a virtualenv which might be a
good idea if you are running an older version of OS X

The target system in this example was OS X 10.4

[activate your virtualenv if you want to test]
# install
mkdir src
cd src
curl -O http://www.python.org/ftp/python/2.7.1/Python-2.7.1.tgz
tar zxvf Python-2.7.1.tgz
cd Python-2.7.1
./configure --enable-framework MACOSX_DEPLOYMENT_TARGET=10.4
make
sudo make frameworkinstall

# test
python

Python 2.7.1 (r271:86832, Apr  2 2011, 00:11:44)
[GCC 4.0.1 (Apple Computer, Inc. build 5370)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>>

Now you shoudl have no problems installing PIL

# install Python Imaging Lib
pip install PIL







>
> On Mar 25, 2:50 pm, pbreit <[email protected]> wrote:
>
> > I had a lot of trouble getting reliable installs of PIL, especially on my
> > Mac. What I currently do is "apt-get install python-imaging" which seems to
> > work OK.
>
>

Reply via email to