python编译安装(centos)

文章目录

python编译安装

centos8 下载编译安装python3.*

  1. 下载 https://www.python.org/
  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 libffi-devel
  1. 解压编译
    tar -zxvf Python-3.6.7.tgz
    ./configure --prefix=/opt/python367/  --enable-optimizations  --enable-ipv6
    make && make install
    
    prefix的含义,指定了安装路径
上一篇:自定义-starter


下一篇:注册中心Consul使用【集群容器化部署】【ACL使用】