文章目录
python编译安装
centos8 下载编译安装python3.*
- 下载 https://www.python.org/
- 安装依赖
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 libffi-devel
- 解压编译
prefix的含义,指定了安装路径tar -zxvf Python-3.6.7.tgz ./configure --prefix=/opt/python367/ --enable-optimizations --enable-ipv6 make && make install