$PYTHONHOME

Matthew Hirsch meh9 at cornell.edu
Thu May 17 10:55:13 EDT 2001


Hi,

I'm using Python on a hp-unix machine.  This is what I get when I type
python
at the prompt (I added it to my path already).

$python
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
Python 1.5.2 (#1, Jan 3 2000, 15:54:36)  [GCC 2.95.2 19991024
(release)] on hp-uxB
Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
>>>

The python directory is under /usr/local/.  I found a directory
/usr/local/python-1.5.2/lib/python1.5/plat-hp-uxB.  I'm guessing that
this is the directory for the platform dependent libraries. I tried
adding $PYTHONHOME=/usr/local to my .profile but it didn't make a
difference.  Is there a root profile that I need to change?

Thanks for your help,
Matt




More information about the Python-list mailing list