Here's what I had to do to build PIL for a virtualenv on Ubuntu:
http://ubuntuforums.org/showthread.php?t=1751455

On Thu, Feb 9, 2012 at 5:01 PM, Nate Sanders <[email protected]> wrote:

> Installing on Ubuntu 11.04 32-bit:
>
> I had to...
>
> to get jpeg support in PIL:
> apt-get install libjpeg8-dev (not libjpeg62-dev)
>
> to get png support in PIL (libz.so is not where it expects it to be):
> sudo ln -s /usr/lib/i386-linux-gnu/libz.so /usr/lib
>
> I believe 64-bit Ubuntu will have libz.so in an also-wrong-but-different
> place for PIL.
>
> There are still some other things (Freetype, LittleCMS, TkInter) that I
> don't have working in PIL ....could be similar to above where you need
> alternate library or just symlinks.
>
> -- Nate
>
>
> On Thu, Feb 9, 2012 at 3:08 PM, Leo Shklovskii <[email protected]>wrote:
>
>> If you're on windows, go grab the precompiled binaries. Compiling PIL
>> from scratch on windows is a huge PITA.
>>
>> http://www.pythonware.com/**products/pil/<http://www.pythonware.com/products/pil/>
>>
>> --
>> --Leo
>>
>>
>> James Cooper wrote:
>>
>>> Hi there,
>>>
>>> We'll be using PIL for the coding problem tonight.  You might want to
>>> have it installed.  If you have pip, it's simply:
>>>
>>> pip install pil
>>>
>>> If you're on a Mac, and you get some crazy compile error, you might try
>>> this:
>>>
>>> export ARCHFLAGS='-arch i386 -arch x86_64'
>>> pip install pil
>>>
>>> cheers
>>>
>>> -- James
>>>
>>> --
>>>
>>> James Cooper
>>> http://blog.bitmechanic.com/
>>>
>>
>

Reply via email to