Jon Blower wrote: > Hi all, > > I'm a matplotlib newbie and have recently installed matplotlib as part > of the Python(x,y) distribution for Windows. I want to do some image > manipulation (e.g. basemap.warpimage()) and my initial installation > didn't have the Python Imaging Library (PIL) installed, so I installed > this via easy_install: > > easy_install PIL > > This worked, but it was installed in such a way that the import command > > from PIL import Image > > doesn't work (it seems that "import Image" works instead). This means > that basemap.warpimage() does not work because it expects to be able > to import PIL through the former expression. I can try to install PIL > some other way, but does this indicate that the basemap module should > try both ways of importing PIL, as different users might have > different setups? Is there a quick fix that I could apply? > > (Apologies if this question has been asked before - I did some > Googling and didn't find anything.) > > Regards, Jon > > Jon: It seems like PIL is not "setuptools-aware"...
http://mail.python.org/pipermail/image-sig/2007-May/004451.html PIL does not get installed correctly using setuptools. You'll need to install the old-fashioned way, i.e. "python setup.py install". -Jeff -- Jeffrey S. Whitaker Phone : (303)497-6313 Meteorologist FAX : (303)497-6449 NOAA/OAR/PSD R/PSD1 Email : jeffrey.s.whita...@noaa.gov 325 Broadway Office : Skaggs Research Cntr 1D-113 Boulder, CO, USA 80303-3328 Web : http://tinyurl.com/5telg ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users