linux 安装python3
1、 wget https://www.python.org/ftp/python/3.7.3/Python-3.7.3.tgz
2、 tar xz Python-3.7.3.tgz
3、 cd Python-3.7.3
yum install openssl-devel -y
yum -y install zlib* (如果安装python3报错 zipimport.ZipImportError: can’t decompress data 则需此步)
yum -y install (如果安装报错 ModuleNotFoundError: No module named '_ctypes' )
4、 ./configure --with-ssl --prefix=/usr/local/python3/
5、make & make install
6、ln -s /usr/local/python3/bin/python3 /usr/bin/