VectorLinux

Please login or register.

Login with username, password and session length
Advanced search  

News:

Visit our home page for VL info. For support and documentation, visit the Vector Linux Knowledge Center or search the Knowledge Center and this Forum using the search box above.

Author Topic: Python Image Library  (Read 1456 times)

Sengir

  • 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
Logged

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.
Logged
Most music on my soundcloud page was arranged in programs running on VL.

Sengir

  • 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]
PYTHONPATH=/lib/python2.5/site-packages

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 ).
Logged

rbistolfi

  • Packager
  • Vectorian
  • ****
  • Posts: 2317
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
Thanks!
Logged
"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.

--
Jumalauta!!