$PYTHONHOME

Michael Hudson mwh at python.net
Thu May 17 18:22:37 EDT 2001


Matthew Hirsch <meh9 at cornell.edu> writes:

> 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

Try making that $PYTHONHOME=/usr/local/python-1.5.2 ?

> difference.  Is there a root profile that I need to change?

Don't think so.

Cheers,
M.

-- 
 All parts should go together without forcing. You must remember that
 the parts you are  reassembling were disassembled by you.  Therefore,
 if you can't get them together again, there must be a reason. By all
 means, do not use a hammer.           -- IBM maintenance manual, 1925



More information about the Python-list mailing list