VectorLinux
July 23, 2014, 01:57:44 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Visit our home page for VL info. To search the old message board go to http://vectorlinux.com/forum1. The first VL forum is temporarily offline until we can find a host for it. Thanks for your patience.
 
Now powered by KnowledgeDex.
   Home   Help Search Login Register  
Please support VectorLinux!
Pages: [1]
  Print  
Author Topic: Python Image Library  (Read 1319 times)
Sengir
Member
*
Posts: 36


« 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: 1545


I like the bass to go BOOM!


WWW
« 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 Grin.
Logged

Most music on my soundcloud page was arranged in programs running on VL.
Sengir
Member
*
Posts: 36


« Reply #2 on: November 25, 2008, 01:33:39 am »

Two options:
From the commandline (just like normal PATH):
Code:
PYTHONPATH=/lib/python2.5/site-packages

Or inside a module (or the python shell):
Code:
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 Cheesy ).
Logged
rbistolfi
Packager
Vectorian
****
Posts: 2276


« Reply #3 on: November 25, 2008, 08:50:38 am »

Well that explains why I always had to install those by myself Grin
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!!
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!