CentOs 下 python2.7升级

前端之家收集整理的这篇文章主要介绍了CentOs 下 python2.7升级前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
备用命令:
yumgroupinstall"Developmenttools"
yuminstallzlib-devel
yuminstallbzip2-devel
yuminstallopenssl-devel
yuminstallncurses-devel
yuminstallsqlite-devel


cd/opt
wget--no-check-certificatehttps://www.python.org/ftp/python/2.7.9/Python-2.7.9.tar.xz
tarxfPython-2.7.9.tar.xz
cdPython-2.7.9

yuminstallreadline-devel
yuminstallgdbm-devel.i686
yuminstalltcl-devel.x86_64
yuminstallgdbm-devel.x86_64


./configure--prefix=/usr/local--with-dbmliborder=gdbm:bdb
make
makeinstall
mv/usr/bin/python/usr/bin/python.old
ln-s/opt/Python-2.7.9/python/usr/bin/python

Done!

猜你在找的CentOS相关文章