Tag Archives: “ImportError: No module named site”

Problem solving: start Python and report “importerror: no module named site” error

“358141;”36941;”213822225945;” 20320;”25484;” 25569;”22797;” 26434;”Gremlin”35810;”35843;” 357973;”>>>

38382;- 39064;
32622;- Python-24452; 20294;- 21551;- Python-24635;-25253Imports; rror:Nomodulenamedsite “38169;” 35823;

[ root@tZgame ]’35;echo$PATH
/usr/local/sbin:/usr/local/bin:/usr/bin:/root/bin:/usr/lib/python2.7:/usr/lib/python2.7:/usr/lib/python2.7/site-packages:/usr/bin/python:/usr/lib64/python2.7
[ root@tZgame ]’35; echo$PYTHONHOME
/usr/bin/
[ root@tZgame ]’35; echo$PYTHONPATH
/usr/bin/
[ root@tZgame ]’35; whereispython
python:/usr/bin/python/usr/bin/python2.7/usr/lib/python2.7/usr/lib64/python2.7/usr/include/python2.7/usr/share/man/man1/python.1.gz
[ root@tZgame ]’35; whichpython
/usr/bin/python

\35;————- 38382;- 39064;- 28857;———–
[br] root@tZgame ]’35; python
Imports rror:Nomodulenamedsite

\35;———- 30475;- 38382;- 39064;- 28857;- 30456;——-
[Translated with Google Translate] root@tZgame ]’35; find/-namesite.py
/usr/lib64/python2.7/site.py

*35;——— 24403;- 38169;- 35823;- 209173;- v261744;——
[br] root@tZ You’re going to be going to be going to be going to be installiinstalliinstalliinstalliinstalliinstallithe hook<
importimportimportimportimportimportimportimportimportimportimportimportimportimportimportimportimportimportimportimportimportimportimportimportinstalliinstalliinstalliinstalliinstalliinstalliinstalliinstalliinstalliinstalliinstalliinstalliinstalliinstalliinstalliinstalliinstalliinstalliinstalliinstalliinstalliinstalliinstalliinstalliinstalliinstalliimportimportimportimportimportimportimportimportimportimportimportimportimportimportimportimportimportimportimportimport \; sys.path<<<
> <.sys. sys. sys. sys. your.path<.path<<<

> ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————–python2.7/site.py
import site 35; precompiledfrom/usr/lib/python2.7/site.pyc ‘352;—————-24046;- 22788;
’35;/ usr/lib/python2.7/os.pycmatches/usr/lib/python2.7/os.py
importos’35;precompiledfrom/usr/lib/python2.7/os.pyc
importerrno’35;builtin
importposix’35; builtin

<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$1919191919191919

209150;br>

PYTHONHOME PYTHONPATH <25193;<20805;- Python27169;- 2235922d;

37324;”23548;” site27169;”22359;” 38169;”24212;” 35813;”PYTHONPATH22686;” site27169;”223592nd;”

Site root@tZ And then you can find the/-name site.py*<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

root@tZ You’re going to have to installinstallinstallinstallinstallinstallimport hook<<
import import import import import ; builtin<<
\\; installed installinstallinstallinstallinstallinstallinstallinstallinstallinstallinstallinstallinstallinstallinstallinstallinstallinstallinstallinstallinstallinstallinstallinstallinstallinstallinstallinstallinstallinstallinstallinstallinstallinstallinstallinstallinstallinstallinstallinstallinstallinstallinstallinstallinstallinstallinstallinstallinstallinstallinstallinstallinstallinstallinstallinstallinstallinstallinstallinstallinstallinstallinstallinstallinstallinstallinstallinstallinstallinstallinstallinstallinstallinstallinstallinstallinstallinstallinstallinstallinstallinstallinstallinstallinstallinstallinstallinstallinstallinstallinstallinstallinstallinstallinstallinstallinstallinstallinstallinstallinstallinstallinstallinstallinstallinstallinstallinstallinstallinstallinstallinstallinstallinstallinstallinstallinstallinstallinstallinstallinstallinstallinstallinstallinstallinstallinstallinstallinstallinstallinstallinstallinstallinstallinstallinstallinstallinstallinstallinstallinstallinstallinstallinstallinstallinstallinstallinstallinstallinstallinstallinstallr/lib64/python2.7/os.pyc matches /usr/lib64/python2.7/os.py

30452;- 25509;- 21551;- Python-35797;- 357971;br> [br] root@tZ etc]’35; python
Python 2.7.5 (default, Jun 17 2014, 18:11:42)
[GCC 4.8.2 20140120 (Red Hat 4.8.2-16)] on linux2
Type “help”, “copyright”, “credits” or “license” for more information.>>

35777;”3838382;” 39064;”20915;” p>