[Image-SIG] easy-install on Windows

Christopher Barker Chris.Barker at noaa.gov
Fri Nov 20 18:33:31 CET 2009

Hi folks,

I just tried:

easy_install PIL

on Windows with Python 2.6

I got PIL 1.1.7, which is nice, but it got installed a bit oddly. I 
couldn't do:

from PIL import Image

What it did is put everything into a directory that got added to the 
easy_install.pth file.

The result is similar to the old style PIL dir, with a PIL.pth file, 
except that you can't do "import PIL" anymore, as the egg dir has a big 
'ol long name.

I'm a big fan of namespaces, so I really don't want all that stuff in 
the root namespace. In fact, I've been removing the PIL.pth file 
(probably only as a matter of principle, but it forces us to use the 
import style I prefer).

I think the that the PIL directory should be put in the egg dir with 
easy-install, but however it's done:

import PIL

should work.


Christopher Barker, Ph.D.

Emergency Response Division
NOAA/NOS/OR&R            (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115       (206) 526-6317   main reception

Chris.Barker at noaa.gov

More information about the Image-SIG mailing list