安装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