centos7.8安装Python-3.10
一. 安装openssl
python3.10需要openssl至少1.1.1,而centos7.8默认版本为1.0.2*
参考:https://www.cnblogs.com/linagcheng/p/15870060.html
二. 安装依赖
yum install -y bzip2-devel libffi-devel zlib zlib-devel
三. 安装Python-3.10
tar -zxvf Python-3.10.12.tgz
cd Python-3.10.12/
./configure --prefix=/usr/local/python3 --with-openssl=/usr/local/OpenSSL_1_1_1t
make -j 2
make install
四. 配置环境变量
export PATH=/usr/local/python3/bin:$PATH
标签:Python,local,centos7.8,3.10,usr,安装
From: https://www.cnblogs.com/linagcheng/p/17553925.html