ImportError: No module named site

chenchao at chenchao at
Mon Jul 27 04:00:27 CEST 2015

     I'm Needing to get python 2.7.10 to cross compile correctly for an 
ARM embedded device. When I execute python using shell, it comes out 
this error:ImportError: No module named site.I have setted environment 
varible:PYTHONHOME and PYTHONPATH. Is there some good idea to sovle this 
issue? who can tell me how can I download the 
python2.7.10-xcompile.patch file?thanks.
PYTHONHOME='/usr/sbin'. Python installing  dir
PYTHONPATH='/usr/lib' .The reference lib of python dir.
This is the result of executingpython -v:

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 168900 bytes
Desc: not available
URL: <>

More information about the Python-list mailing list