Python2.7 環境を作った メモ

1) python
# yum -y install python27 python27-devel 
# rm /usr/bin/python
# ln -s /usr/bin/python2.7 /usr/bin/python
# cp /usr/bin/yum /usr/bin/_yum_old
# sed -i s/python/python26/g /usr/bin/yum
# yum list 

2) eazy_install
# curl -o /usr/local/src/ez_setup.py https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py
# cd /usr/local/src/
# python ez_setup.py
# rm /usr/bin/easy_install
# ln -s /usr/bin/easy_install-2.7 /usr/bin/easy_install

3) pip
# easy_install-2.7 pip