#下载openssl离线包(版本尽量为1.1.X) #解压 tar -xvf openssl-1.1.1n.tar.gz #编译 ./config --prefix=/usr/local/openssl --openssldir=/usr/local/openssl make && make install
#配置环境变量 vim ~/.bashrc export LD_LIBRARY_PATH=/usr/local/openssl/lib:$LD_LIBRARY_PATH export PATH=/usr/local/openssl/bin:$PATH
source ~/.bashrc ````
## 2. python安装
````bash #下载python #解压 tar -xvf Python-3.6.12.tgz cd Python-3.6.12 #编译和安装: #执行以下命令进行编译和安装: ./configure --prefix=/usr/local/python3 --with-openssl=/usr/local/openssl --with-ssl make && make install