1.1、安装:Python3.6.8
2019-07-15 本文已影响0人
EricJonse
源码安装 Python3.6.8
安装基础依赖
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
预编译配置项
./configure --prefix=/usr/local/Python3.6/ --enable-optimizations --enable-loadable-sqlite-extensions --with-ssl --enable-shared
--prefix :指定安装目录
--enable-optimizations :开启优化
--enable-loadable-sqlite-extensions :开启sqlite库依赖
--with-ssl :开启ssl模块
编译
make -j `grep processor /proc/cpuinfo | wc -l`