wget https://www.python.org/ftp/python/3.7.0/Python-3.7.0.tar.xz 获取新版的 python
tar xvf Python-3.7.0.tar.xz 解压文件
cd ./Python-3.7.0 # 进入解压
./configure
make && make install
中途可能会出现错误:
1.linux No module named '_ctypes'
yum install libffi-devel -y
2.
yum install make gcc gcc-c++
3.
yum install zlib zlib-devel -y
注意安装完成后,python3 并未覆盖 python2