1.下载Python源码包:
[root@localhost ~]# wget https://www.python.org/ftp/python/3.6.5/Python-3.6.5.tgz
2.解压、编译、安装:
[root@localhost ~]# tar -xzvf ./Python-3.6.5.tgz -C /usr/local/src/
[root@localhost ~]# cd /usr/local/src/Python-3.6.5/
[root@localhost Python-3.6.5]# ./configure --prefix=/usr/local/python
[root@localhost Python-