1.yum方式默认已经安装2.7.5版本
#若没有执行
[root@master ~]# yum install -y python
#查看版本
[root@master ~]# python -V
Python 2.7.5
2.安装python3
#安装编译python3所用到的相关依赖
yum install zlib zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gcc make -y
标签:python,zlib,devel,Centos7,yum,安装
From: https://www.cnblogs.com/khtt/p/17533848.html