# 下载 openssl,如果不先安装 openssl,后续pip、requests库使用会有很多问题
wget --no-check-certificate https://www.openssl.org/source/openssl-1.1.1g.tar.gz
tar -zxvf openssl-1.1.1g.tar.gz
cd openssl-1.1.1g
./config shared --openssldir=/usr/local/openssl --prefix=/usr/local/openssl
make
make install
echo "/usr/local/openssl/lib/" >> /etc/ld.so.conf
ldconfig
# 安装 sqlit,可选
wget https://www.sqlite.org/2018/sqlite-autoconf-3240000.tar.gz
tar -xvzf sqlite-autoconf-3240000.tar.gz
cd sqlite-autoconf-3240000/
./configure --prefix=/usr/local/sqlite
make -j4&&sudo make install
vi setup.py
# 查找" sqlite_inc_paths" 新增
'/usr/local/sqlite/include'
'/usr/local/sqlite/include/sqlite3'
# 安装python
cd Python-3.7.13
./configure --with-openssl=/usr/local/openssl --enable-loadable-sqlite-extensions
make
make install
09-30
3066
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)