centos7.6 安装python3.7
注:在系统中默认安装2.7版本
第一步:查看系统版本
cat /etc/redhat-release
第二步:更新一下yum源
cd /etc/yum.repos.d/
mkdir bak
wget http://mirrors.aliyun.com/repo/Centos-7.repo
wget http://mirrors.aliyun.com/repo/epel-7.repo
第三步:安装依赖
yum -y install zlib-devel bzip2-devel openssl-devel openssl-static ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libp