Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")解决方法

By 东方不败 at 2022-04-19 • 0人收藏 • 1330人看过

wget https://www.openssl.org/source/openssl-1.1.1n.tar.gz

tar -zxf openssl-1.1.1n.tar.gz

cd openssl-1.1.1n

./config --prefix=/usr/local/openssl

make -j && make install 



mv /usr/bin/openssl /usr/bin/openssl.bak

ln -s /usr/local/openssl/bin/openssl /usr/bin/openssl


make clean

./configure --prefix=/usr/local/python3 --with-openssl=/usr/local/openssl

make -j && make install


登录后方可回帖