Centos 系统更新Python
2010-05-02 23:11
751 查看
我现在使用的Server是CentOS release 5.4 (Final),但是Python还是2.4.3,比较低了,一直想更新一下。上次强行把Python卸载,导致yum和一些基本的命令用不了了。所以更新千万不要把老版本卸载了,新老版本可以共存的。
在几个外国论坛找到了一些资料,执行下面的命令安装2.6版本的Python:
最后顺利完成,结果如下:
这其中也遇到一个错误:
这是因为没有安装程序依赖的libffi,执行第3和第4行命令安装libffi后,问题解决。
本文独立博客链接:http://lloydsheng.com/2010/05/how-to-update-python-in-centos.html
在几个外国论坛找到了一些资料,执行下面的命令安装2.6版本的Python:
$rpm -Uvh http://yum.chrislea.com/centos/5/i386/chl-release-5-3.noarch.rpm $rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-CHL $rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-3.noarch.rpm $yum install libffi $yum install python26
最后顺利完成,结果如下:
$ python26 Python 2.6.2 (r262:71600, Sep 8 2009, 13:06:43) [GCC 4.1.2 20080704 (Red Hat 4.1.2-44)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>>
这其中也遇到一个错误:
python26-2.6.2-2.i386 from chl has depsolving problems --> Missing Dependency: libffi.so.5 is needed by package python26-2.6.2-2.i386 (chl) Error: Missing Dependency: libffi.so.5 is needed by package python26-2.6.2-2.i386 (chl)
这是因为没有安装程序依赖的libffi,执行第3和第4行命令安装libffi后,问题解决。
本文独立博客链接:http://lloydsheng.com/2010/05/how-to-update-python-in-centos.html
相关文章推荐
- CentOS系统更新Python
- windows系统下用python更新svn和Git
- CentOS更改yum源与更新系统
- CentOS系统升级Python到Python3.3步骤
- 在 CentOS 和 RHEL 系统上安装或自动更新安全补丁
- CentOS 6更新Python2.7版本
- CentOS安装,更新Python
- CentOS更改yum源与更新系统
- CentOS更改yum源与更新系统
- centos系统各个信息的查看(不断添加更新)
- centos下更新Python
- python+django开发的运维工具——游戏内测服更新系统
- CentOS更改yum源与更新系统
- centos6.5更新python2.7影响pip和easy_install
- Centos系统部署python django程序过程记录
- centos下更新Python版本的步骤
- CentOS更改yum源与更新系统 ,安装软件
- 如何安全的升级centos系统中的python
- CentOS系统中把PHP 5.3.x更新到PHP 5.4.x
- CentOS更改yum源与更新系统