[root@localhost ~]# yum install -y wget vim lrzsz zip unzip telnet gcc-c++ tcl
2、安装python3.6.5
[root@localhost ~]# cd /data/src/
[root@localhost src]# wget https://www.python.org/ftp/python/3.6.5/Python-3.6.5.tgz
[root@localhost src]# tar -xf Python-3.6.5.tgz
[root@localhost src]# mv Python-3.6.5 ../soft/
[root@localhost src]# cd ../soft/Python-3.6.5
[root@localhost Python-3.6.5]# mkdir -p /data/soft/python3
[root@localhost Python-3.6.5]# ./configure --enable-optimizations --prefix=/data/soft/python3
[root@localhost Python-3.6.5]# make && make install
[root@localhost Python-3.6.5]# cd /data/soft/python3/bin
[root@localhost bin]# python3
Python 3.6.7 (default, Jul 13 2019, 16:46:47)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-23)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> exit()
[root@localhost bin]# mkdir -p /root/.pip
[root@localhost bin]# vim /root/.pip/pip.conf
## Note, this file is written by cloud-init on first boot of an instance
## modifications made here will not survive a re-bundle.
###
[global]
index-url=http://mirrors.aliyun.com/pypi/simple/
[install]
trusted-host=mirrors.aliyun.com
[root@localhost bin]# ln -s /data/soft/python3/bin/python3 /usr/local/bin/python3