easy_install PIL – Not so Easy

For some reason, the Python Imaging Library doesn’t seem to easy_install from pypi.  Fortunately, Martin Geber found the solution.

I get this when I try to easy_install PIL:

$ easy_install PIL
Searching for PIL
Reading http://cheeseshop.python.org/pypi/PIL/
Reading http://www.pythonware.com/products/pil
Reading http://effbot.org/downloads/#Imaging
Reading http://cheeseshop.python.org/pypi/PIL/1.1.6
No local packages or download links found for PIL
error: Could not find suitable distribution for Requirement.parse('PIL')

Try this instead:

$ easy_install --find-links http://www.pythonware.com/products/pil/ Imaging

Thanks, Martin!

~ by Liz on June 9, 2009.

5 Responses to “easy_install PIL – Not so Easy”

  1. Have you tried that in a buildout? :)

  2. Oh, and just to make imports work in the case where you need something like “from PIL.JpegImagePlugin import MARKER” you can create a symbolic link in site-packages from the Imaging*egg dir to PIL (should work if you have PIL installed globally or in a virtualenv site-packages directory).

  3. I just do: easy_install http://dist.repoze.org/PIL-1.1.6.tar.gz

    Adding that URL to find-links in a buildout works too.

  4. [...] Now I’m off to fix this, which I’ve done too many times to count: [...]

Leave a Reply