Please support VectorLinux!

Author Topic: Python Image Library  (Read 1438 times)


  • Member
  • *
  • Posts: 36
Python Image Library
« on: November 24, 2008, 05:54:57 am »
The Python Image Library (PIL) isn't installed in the usual directory on VL 5.9 SOHO. Its installed to /lib/python2.5/site-packages/ instead of /usr/lib/python2.5/site-packages/ (the same is the case with setuptools if I'm not mistaken). There are several solutions to this problem, listed from hard to easy:
  • Compile PIL yourself using the correct directory
  • Copy the PIL files to the correct directory
  • Add /lib/python2.5/site-packages/ to the Python path

The Headacher

  • Louder than you
  • Global Moderator
  • Vectorian
  • *****
  • Posts: 1553
  • I like the bass to go BOOM!
    • Multimedia on VL (work in progress)
Re: Python Image Library
« Reply #1 on: November 24, 2008, 10:40:13 am »
You sure that's the correct order? 'cuz I have no idea how to add /lib/python2/site-packages to the Python path ;D.
Most music on my soundcloud page was arranged in programs running on VL.


  • Member
  • *
  • Posts: 36
Re: Python Image Library
« Reply #2 on: November 25, 2008, 01:33:39 am »
Two options:
From the commandline (just like normal PATH):
Code: [Select]

Or inside a module (or the python shell):
Code: [Select]
import sys
sys.path.append( '/lib/python2.5/site-packages' )

Though you're probably right that it is easier to copy the files (that's what I did in fact :D ).


  • Packager
  • Vectorian
  • ****
  • Posts: 2299
Re: Python Image Library
« Reply #3 on: November 25, 2008, 08:50:38 am »
Well that explains why I always had to install those by myself ;D
"There is a concept which corrupts and upsets all others. I refer not to Evil, whose limited realm is that of ethics; I refer to the infinite."
Jorge Luis Borges, Avatars of the Tortoise.