CentOS安装,更新Python
2020-11-18 16:06
标签:http blog style class div code log tar c color t 1、查看当前Python版本 2、查看当前CentOS版本 3、安装所有的开发工具包 4、安装其他必须包 5、下载编译安装Python(2.7.6为例,全部版本) 6、更新python命令对应版本 7、检查Python最终版本 返回应为(例):Python 2.7.6rc1 CentOS安装,更新Python,搜素材,soscw.com CentOS安装,更新Python 标签:http blog style class div code log tar c color t 原文地址:http://www.cnblogs.com/demopark/p/3696673.htmlpython -V
cat /etc/redhat-release
yum groupinstall "Development tools"
yum install zlib-devel bzip2-devel openssl-devel ncurses-devel
cd /opt
wget https://www.python.org/ftp/python/2.7.6/Python-2.7.6.tgz
tar xf Python-2.7.6.tgz
cd Python-2.7.6
./configure
make install
cd /usr/bin
ll |grep python
rm -rf python
ln -s /usr/local/bin/python2.7 ./python
python -V
上一篇:Java堆栈详解 .
下一篇:Java集合框架之泛型