安装python2.6.2

wget http://www.python.org/ftp/python/2.6.2/Python-2.6.2.tgz

tar zxf Python-2.6.2.tgz

cd Python-2.6.2

./configure --prefix=/usr/local/python262

make

make install

mv /usr/local/bin/python /usr/local/bin/python.bak

ln -s /usr/local/python/262/bin/python /usr/bin/py262

wget http://peak.telecommunity.com/dist/ez_setup.py

py262 ez_setup.py

easy_install MySQL-python

原文地址:https://www.cnblogs.com/devops/p/3038928.html