Path: csiph.com!optima2.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!1.eu.feeder.erje.net!ecngs!feeder2.ecngs.de!217.188.199.168.MISMATCH!takemy.news.telefonica.de!telefonica.de!newsfeed.xs4all.nl!newsfeed8.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'paths': 0.05; 'append': 0.07; 'imported': 0.09; 'issue?': 0.09; 'path.': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'subject:module': 0.09; 'python': 0.10; 'jan': 0.11; '"""append': 0.16; '*must*': 0.16; '10:00': 0.16; 'hi:': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'reedy': 0.16; 'wrote:': 0.16; 'arm': 0.22; 'third-party': 0.23; 'header:In-Reply-To:1': 0.24; 'module': 0.25; 'header:User- Agent:1': 0.26; 'header:X-Complaints-To:1': 0.26; 'module.': 0.27; 'idea': 0.28; 'environment': 0.29; 'starts': 0.29; "i'm": 0.30; 'embedded': 0.32; 'correctly': 0.34; 'dir': 0.35; 'installing': 0.35; 'there': 0.36; 'to:addr:python-list': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'received:org': 0.37; 'version': 0.38; 'skip:p 20': 0.38; 'to:addr:python.org': 0.40; 'some': 0.40; 'needing': 0.63; 'received:fios.verizon.net': 0.91; 'device.': 0.93 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Terry Reedy Subject: Re: ImportError: No module named site Date: Mon, 27 Jul 2015 15:08:41 -0400 References: <55B59006.5080402@inhand.com.cn> <55B590BB.2040104@inhand.com.cn> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: pool-98-114-97-173.phlapa.fios.verizon.net User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0 In-Reply-To: <55B590BB.2040104@inhand.com.cn> X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 28 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1438024136 news.xs4all.nl 2827 [2001:888:2000:d::a6]:33799 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:94673 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