Compilation error - no module named os

Michal Cernoevic michal.cernoevic at pvt.cz
Mon Jun 24 08:28:13 EDT 2002


Excuse my question, but I am unable to compile Python 2.2.1 on Linux
2.4.9-31.

I only did tar, cd Python-2.2.1; ./configure; make

and the compilation finished so:

*-s*) CC='gcc' LDSHARED='gcc -shared'
OPT='-DNDEBUG -g -O3 -Wall -Wstrict-prototypes' ./python -E ./setup.py -q
build;; \
*) CC='gcc' LDSHARED='gcc -shared'
OPT='-DNDEBUG -g -O3 -Wall -Wstrict-prototypes' ./python -E ./setup.py
build;; \
esac
Could not find platform independent libraries <prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
'import site' failed; use -v for traceback
Traceback (most recent call last):
  File "./setup.py", line 6, in ?
    import sys, os, getopt
ImportError: No module named os
make: *** [sharedmods] Error 1

Thanks for some ideas.

With regards Michal Cernoevic






More information about the Python-list mailing list