python Could not find platform independent libraries prefix Could not

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
# ./python
Could not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
'import site' failed; use -v for traceback
Python 2.6.2 (unknown, May 15 2009, 08:41:19)
[GCC 4.3.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.version
'2.6.2 (unknown, May 15 2009, 08:41:19) \n[GCC 4.3.2]'
>>> print sys.version
2.6.2 (unknown, May 15 2009, 08:41:19)
[GCC 4.3.2]
>>> ^[[A^[[B^[[B
File "<stdin>", line 1
^
SyntaxError: invalid syntax
>>>