[Tutor] PIL import module problems

Rick Pasotto rickp@telocity.com
Mon, 2 Sep 2002 09:50:23 -0400


On Tue, Sep 03, 2002 at 12:10:29AM +1200, Thomi Richards wrote:
> 
> Hey!
> 
> I just downloaded the python imaging library module on my debian (sarge)
> box ('sudo apt-get install python2.2-imaging'). It installed OK, but
> when i go 'import Image', it says it cannot find the module "Image'.
> HOWEVER, i am using python2.1.
> 
> can someone explain why the imaging library for 2.2 will not work with
> 2.1?? are there features in 2.2 which PIL needs?? I'll download the 2.1
> version, but i did find this a little interesting...

Because /usr/lib/python2.1/site-packages/PIL is a different directory
than /usr/lib/python2.2/site-packages/PIL.

Debian is set up so that you can have multiple versions of python on the
machine at the same time and then choose which one you want to work with.

-- 
"Every time I try to define a perfectly stable person, I am appalled by
the dullness of that person."
		-- J. D. Griffin
    Rick Pasotto    rickp@telocity.com    http://www.niof.net