Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #94673 > unrolled thread

Re: ImportError: No module named site

Started byTerry Reedy <tjreedy@udel.edu>
First post2015-07-27 15:08 -0400
Last post2015-07-27 15:08 -0400
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: ImportError: No module named site Terry Reedy <tjreedy@udel.edu> - 2015-07-27 15:08 -0400

#94673 — Re: ImportError: No module named site

FromTerry Reedy <tjreedy@udel.edu>
Date2015-07-27 15:08 -0400
SubjectRe: ImportError: No module named site
Message-ID<mailman.1036.1438024136.3674.python-list@python.org>
On 7/26/2015 10:00 PM, chenchao@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

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web