Python2.6提示缺少site模块

0

rpm安装Python2.6后,发现提示No module named site,在环境变量添加:

#路径查找:find / -name site.py
export PYTHONHOME=/usr/lib64/python2.6
export PYTHONPATH=$PYTHONPATH:/usr/lib64/python2.6
#重新加载
. /etc/profile

Done