赞
踩
安装环境:
yum install -y gcc gcc-c++ autoconf automake zlib zlib-devel pcre-devel libffi-devel
下载openssl:
wget https://www.openssl.org/source/openssl-1.1.1u.tar.gz
创建安装后的目录
mkdir /usr/local/openssl1.1.1
编译安装
cd openssl-1.1.1u
./config --prefix=/usr/local/openssl1.1.1
make && make install
安装Python
#去官网下载python12
创建安装后的目录:
mkdir /usr/local/python3.12
安装python:
tar -zxvf Python-3.12.0.tgz
cd Python-3.12.0
./configure --prefix=/usr/local/python3.12 --with-openssl=/usr/local/openssl1.1.1 --with-openssl-rpath=auto
make && make install
软链
ln -f -s /usr/local/python3.12/bin/python3.12 /usr/bin/python3.12
ln -f -s /usr/local/python3.12/bin/pip3.12 /usr/bin/pip3.12
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。