yum install gcc readline readline-devel sqlite sqlite-devel openssl openssl-devel gdbm gdbm-devel bzip2 bzip2-devel tkinter tkinter-devel tcl tcl-devel tk tk-devel
mkdir -p /data0/application/python/tmp
cd /data0/application/python/tmp
wget https://www.python.org/ftp/python/3.6.5/Python-3.6.5.tgz
tar zxvf Python-3.6.5.tgz
cd Python-3.6.5
./configure --prefix=/data0/application/python/Python-3.6.5
make
make install
ln -s /data0/application/python/Python-3.6.5/bin/python3.6 /usr/bin/python3.6
ln -s /data0/application/python/Python-3.6.5/bin/pip3.6 /usr/bin/pip3.6
python3.6 --version
# Python 3.6.5