下载python3.12.3

https://www.python.org/downloads/release/python-3123/

安装

yum -y install gcc zlib zlib-devel libffi libffi-devel

yum install readline-devel

yum install bzip2-devel

yum install epel-release

yum install openssl-devel

export CFLAGS=$(pkg-config --cflags openssl)

export LDFLAGS=$(pkg-config --libs openssl)

tar -xzvf Python-3.12.3.tgz

cd Python-3.12.3

./configure --prefix=/usr/local/lib/python3.12.3 --with-openssl=/usr/bin/openssl

make -j`nproc` && make install

check

./python3

import ssl

好文阅读

评论可见,请评论后查看内容,谢谢!!!评论后请刷新页面。

大家都在找:

centos:centos官网

linux:红帽linux官网

运维:运维平台

大家都在看: