[Tutor] can't locate module library

Magnus Lyckå magnus@thinkware.se
Sun May 4 16:29:02 2003


At 13:23 2003-05-04 -0400, reavey wrote:
>[dad@localhost dad]$ echo $PYTHONHOME
>/usr/local/lib/python2.2

I don't have $PYTHONHOME set at all in my Mandrake.
No need it seems.

>[dad@localhost dad]$[dad@localhost dad]$ /usr/local/bin/python
>'import site' failed; use -v for traceback
>Python 2.2.2 (#1, May  4 2003, 09:33:03)
>[GCC 2.96 20000731 (Mandrake Linux 8.2 2.96-0.76mdk)] on linux2
>Type "help", "copyright", "credits" or "license" for more information.
> >>> import os

There is something wrong with your Python installation.

Why don't you use the normal Mandrake Python RPM?

You don't have that as well, do you? That would install in
another location. Try "rpm -qa | grep -i python" or have
a look at /bin/python or look for python directories in /usr/lib/


--
Magnus Lycka (It's really Lyckå), magnus@thinkware.se
Thinkware AB, Sweden, www.thinkware.se
I code Python ~ The shortest path from thought to working program