Linux 安装
https://www.python.org/downloads/source/
下载 python3.6.6.tar.gz 或者
下载 python3.6.6.tgz
解压到python3.6.6
tar.gz解压2次(看见是文件夹)
# 安装依赖
yum -y install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel
# 定位
cd python3.6.6
# 编译安装到/usr/local/python目录
./configure --prefix=/usr/local/python
make
make install # 可以看到compiling编译
添加环境变量