Centos 6.5 python 2.6.6 升级到 2.7.3,并安装easy_install和pip工具过程
2017-04-21 16:27
1111 查看
[b]一、使用说明:[/b]
一些原因需要将centos 6.5系统自带的python 2.6.6升级为2.7版本,下面是具体升级过程,记录一下!
二、实验环境:
系统:centos 6.5 final
python版本:
三、安装配置:
1、下载Python-2.7.3
一些原因需要将centos 6.5系统自带的python 2.6.6升级为2.7版本,下面是具体升级过程,记录一下!
二、实验环境:
系统:centos 6.5 final
python版本:
# python -V Python 2.6.6
三、安装配置:
1、下载Python-2.7.3
# cd /home/workspace/ # wget http://python.org/ftp/python/2.7.3/Python-2.7.3.tar.bz2[/code] 2、解压并安装# tar xf Python-2.7.3.tar.bz # cd Python-2.7.3 # ./configure # make all # make install # make clean #可有可无 # make distclean #可有可无
3、替换系统默认python版本# mv /usr/bin/python /usr/bin/python2.6.6 # ln -s /usr/local/bin/python2.7 /usr/bin/python
4、查看系统版本# python -V Python 2.7.3
5、替换yum程序使用的python版本# which yum /usr/bin/yum # vim /usr/bin/yum 修改内容: #!/usr/bin/python 改为 #!/usr/bin/python2.6.6让yum使用老的版本的python
6、安装easy_install# cd /home/workspace # wget https://pypi.python.org/packages/ba/2c/743df41bd6b3298706dfe91b0c7ecdc47f2dc1a3104abeb6e9aa4a45fa5d/ez_setup-0.9.tar.gz # tar xf setup-0.9.tar.gz # cd ez_setup-0.9 && python ez_setup.py # which easy_install /usr/local/bin/easy_install安装easy_install完成
7、安装pip# yum install -y python-urllib3 # easy_install pip # pip list distribute (0.6.14) pip (9.0.1) setuptools (0.6rc11)pip安装完成
ok,到此全部安装完成!!!
相关文章推荐
- centos6.5将python2.6.6升级到python2.7以及easy_install和pip
- centOS6.5 python升级和安装easy_install,pip
- Centos6.5 python2.6.6升级2.7.13,安装setuptools和pip
- python升级2.6.6-->2.7.3引起的pip和easy_install执行错误
- CentOS 6 安装 python 2.7 (系统自带Python2.6.6) (附easy_install安装, pip安装)
- Centos6.5 安装(更新)python3.5 和pip3.5,easy_install3.5问题
- centos6.5 升级python2.6.6到2.7.9安装过程出现问题解决过程
- centos安装python2.7,easy_install,pip
- centos python升级及easy_install安装模块
- CentOS 6.5升级Python和安装pip、IPython
- CentOS python2.6.6 升级 2.7.5 并安装pip, apscheduler
- 在centos6.5安装python27+easy_install27+pip27
- CentOS6.5升级Python2.6到Python2.7并安装pip
- Centos默认的python2.6.6升级到python2.7.10全过程(包含setuptools/pip/django/yum设置)
- Centos6.5升级到python2.7.5(无法使用easy_install)的问题
- CentOS 6.5升级Python和安装pip、IPython
- centos安装python2.7并安装easy_install,pip,ipython
- Linux CentOS 安装Python的easy_install工具
- centos6.5 升级python 到 python 2.7.11 安装 pip
- 安装python工具 easy_install pip