CentOS 8 上安装 python3

1)下载源码

2)解压

3) 配置 

./configure --prefix=/usr/local/python3Dir --with-ssl

4)编译 & 安装

5)缺少 zlib ,就用 yum 安装

参考文章:

Centos7.6下安装Python3.7

https://developer.aliyun.com/article/693823

原文地址:https://www.cnblogs.com/e1st/p/13361824.html