ImportError: No module named site
Terry Reedy
tjreedy at udel.edu
Mon Jul 27 15:08:41 EDT 2015
On 7/26/2015 10:00 PM, chenchao at inhand.com.cn wrote:
>
> hi:
> 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:
The stdlib /Lib directory *must* contain a site.py module. The standard
version starts with
"""Append module search paths for third-party packages to sys.path.
****************************************************************
* This module is automatically imported during initialization. *
****************************************************************
This will append site-specific paths to the module search path.
...
--
Terry Jan Reedy
More information about the Python-list
mailing list