centos6.5 x86_64 python2.6升级2.7

来自: http://bicofino.io/blog/2014/01/16/installing-python-2-dot-7-6-on-centos-6-dot-5/  
yum -y update
yum groupinstall -y 'development tools' 
yum install -y zlib-devel bzip2-devel openssl-devel xz-libs wget

wget http://www.python.org/ftp/python/2.7.8/Python-2.7.8.tar.xzxz -d Python-2.7.8.tar.xz
tar -xvf Python-2.7.8.tar
cd Python-2.7.8 
./configure --prefix=/usr/local --with-zlib=/usr/include/  
make 
make install 

#安装setuptools
wget --no-check-certificate https://pypi.python.org/packages/source/s/setuptools/setuptools-1.4.2.tar.gz 
tar xvf setuptools-1.4.2.tar.gz
cd setuptools-1.4.2 
python2.7 setup.py install --record install.log   
# 安装PIP
curl https://raw.githubusercontent.com/pypa/pip/master/contrib/get-pip.py | python2.7 -
#或者
easy_install2.7  pip 

#安装ipython 
pip2.7  install ipython 

#ipython tab支持 
yum install  ncurses  ncurses-devel
pip2.7 install Readline


#安装虚拟环境工具
pip2.7 install virtualenv 

#修改yum /usr/bin/python2.6

#另外的方法

# yum update
# yum install centos-release-SCL
# yum install python27

你可能感兴趣的:(upgrade,python2.7,centos6.5,python2.6)