how to install PIL system-wide?
Gabriel Zachmann
zach at igd.fhg.de
Sat Mar 25 11:33:36 EST 2000
Could some kind soul please explain to me how I should install
PIL (python image library) system-wide under Unix, so that
people don't explicitely have to set their PYTHONPATH environment
variable??
I compiled PIL, 'make check' worked,
the I copied it, according to the README, under
/path/python-1.5.2/lib/python-1.5/site-packages/PIL.
That didn't work.
Maybe, because
print sys.path
said
['', '/igd/a4/software/python-1.5.2/lib/python1.5/',
'/igd/a4/software/python-1.5.2/lib/python1.5/plat-irix646',
'/igd/a4/software/python-1.5.2/lib/python1.5/lib-tk',
'/igd/a4/software/python-1.5.2/lib/python1.5/lib-dynload']
(in one line, of course ;-)
So I moved PIL to /igd/a4/software/python-1.5.2/lib/python1.5/plat-irix646.
Now, there is a subdirectory PIL in plat-irix646.
In that directory, there is a file __init__.py
(which is empty except for a few comments),
and there is a file PIL.pth in directory plat-irix646,
which contains just the word "PIL".
I'm confused: it should work shouldn't it?
I looked at the FAQ, of course, but that talke mainly about Tk, and X
modules, and I searched dejanews, to no avail.
(From dejanews I learned about the __init__.py file ;-)
Any hints, suggestions, insights
will be highly appreciated,
Gab.
--
/---------------------------------------------------------------------\
| What if you slept? And what if, in your sleep, you dreamed? |
| And what if, in your dream, you went to heaven and there plucked a |
| strange and beautiful flower? And what if, when you awoke, |
| you had the flower in your hand? Ah, what then? (Coleridge) |
| |
| mailto:zach at igd.fhg.de __@/' mailto:Gabriel.Zachmann at gmx.net |
| http://www.igd.fhg.de/~zach |
\---------------------------------------------------------------------/
More information about the Python-list
mailing list