Linux环境下Python 升级2.7
1.下载Python2.7安装包 # wget http://www.python.org/ftp/python/2.7.3/Python-2.7.3.tgz 解压到指定目录 #tar -zxvf Python-2.7.3.tgz -C /usr/local/ #cd Python-2.7.3 编译、安装 #./configure --prefix=/usr/local/python27 #make #make install 消除旧版本软链接 #mv /usr/bin/python /usr/bin/python_old 建立新版本python的软链接 #ln -s /usr/local/python27/bin/python2.7 /usr/bin/python 安装完成 2.安装pip 首先下载并安装setuptools: #wget --no-check-certificate https://bootstrap.pypa.io/ez_setup.py
#python ez_setup.py --insecure
python官网下载pip安装包:https://pypi.python.org/pypi/pip #cd pip-9.0.1
#python setup.py install 安装完成
No one indebted for others,while many people don't know how to cherish others.