安装python3

tar -xzvf Python-3.3.tgz
cd Python-3.3

export LANG=zh_CN.UTF-8
export LANGUAGE=zh_CN.UTF-8

mkdir /usr/local/python3
./configure --prefix=/usr/local/python3

make all
make install
make clean

rm /usr/bin/python
ln -s /usr/local/python3/bin/python3 /usr/bin/python

修复不能正常工作的Yum:
打开Yum的配置文件/usr/bin/yum,将第一行修改为:!#/usr/bin/python2.4
打开/usr/sbin/yum-updatesd,将第一行修改为:!#/usr/bin/python2.4
运行命令:/usr/bin/python2.4,然后import yum

posted @ 2013-03-24 17:24  Leung文  阅读(135)  评论(0编辑  收藏  举报