Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #94673
| From | Terry Reedy <tjreedy@udel.edu> |
|---|---|
| Subject | Re: ImportError: No module named site |
| Date | 2015-07-27 15:08 -0400 |
| References | <55B59006.5080402@inhand.com.cn> <55B590BB.2040104@inhand.com.cn> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.1036.1438024136.3674.python-list@python.org> (permalink) |
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
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: ImportError: No module named site Terry Reedy <tjreedy@udel.edu> - 2015-07-27 15:08 -0400
csiph-web