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!

Advertisements

~ by Liz on June 9, 2009.

9 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: […]

  5. sudo easy_install –find-links http://www.pythonware.com/products/pil/ Imaging
    Searching for Imaging
    Reading http://www.pythonware.com/products/pil/
    Best match: Imaging 1.1.7
    Downloading http://effbot.org/downloads/Imaging-1.1.7.tar.gz
    Processing Imaging-1.1.7.tar.gz
    Running Imaging-1.1.7/setup.py -q bdist_egg –dist-dir /tmp/easy_install-6etRCx/Imaging-1.1.7/egg-dist-tmp-XcwALp
    WARNING: ” not a valid package name; please use only.-separated package names in setup.py
    — using frameworks at /System/Library/Frameworks
    unable to execute gcc-4.0: No such file or directory
    error: Setup script exited with error: command ‘gcc-4.0’ failed with exit status 1

    OSX 10.6.3, Python 2.6.5

    Any ideas?

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: