简述
从官网下载了Python3.7.4,直接编译安装后,使用pip3出现了报错信息: Can't connect to HTTPS URL because the SSL module is not available
错误原因
在Python3.7之后的版本,依赖的openssl,必须要是1.1或者1.0.2之后的版本,或者安装了2.6.4之后的libressl。
image.png
而本地的openssl依然是1.0.1e的。
[root@localhost ~]# openssl versionOpenSSL 1.0.1e-fips 11 Feb 2013解决方法
上openssl官网下载1.0.2或者1.1之后的openssl包,编译安装。我选择的是1.0.2r。
[root@localhost ~]# wget http://mand.总结
以上所述是小编给大家介绍的解决安装python3.7.4报错Can''t connect to HTTPS URL because the SSL module is not available,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对网站的支持!
如果你觉得本文对你有帮助,欢迎转载,烦请注明出处,谢谢!