安装python3.7.0
一、安装依赖和yum更新
[root@hadoop101 mysql]# yum update
2、安装编译依赖
[root@hadoop101 mysql]# yum install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel libffi-devel gcc make
二、下载python3.7.0
[root@hadoop101 software]# wget https://www.python.org/ftp/python/3.7.0/Python-3.7.0.tgz
三、安装python
1、解压文件
[root@hadoop101 software]# tar -xvf Python-3.7.0.tgz
[root@hadoop101 software]# mv Python-3.7.0 python-3.7.0
2、配置编译
进入到解压的python的目录里