yum install zlib-devel openssl openssl-devel -y
wget https://www.python.org/ftp/python/3.6.4/Python-3.6.4.tgz
tar -xzvf Python-3.6.4.tgz
cd Python-3.6.4
./configure --prefix=/usr/local/python3.6 --enable-shared --with-ssl
make && make install
提示错误解决方案:/usr/local/python3/bin/python3: error while loading shared libraries: libpython3.6m.so.1.0: cannot open shared object file: No such file or directory
echo "/usr/local/python3.6/lib/">>/etc/ld.so.conf.d/python3.6.conf && /sbin/ldconfig