#安装平台-- Linux
- 官网下载安装包
- 解压安装包
- 安装编译过程需要的依赖性:gcc,zlib,zlib-devel,openssl-devel,readline,readline-devel
- 进入解压的安装包进行编译
./configure --prefix=/usr/local/python --with-ssl
-
安装:make && make install
-
设置软链接:
ln -s /usr/local/python/bin/python3.6 /usr/local/bin/
ln -s /usr/local/python/bin/pip3.6 /usr/local/bin/ -
测试是否安装成功,终端直接输入
python3.6