![5e0f96195f76b44e8d7bce90d9430173.png](https://img-blog.csdnimg.cn/img_convert/5e0f96195f76b44e8d7bce90d9430173.png)
在Cent0S 7.5下将Python 2.7.5升级到Python 3.6.6后,发现ssl模块不可用,具体详细信息如下所示:
![95834269bcea9f614ced2103a0e5fe3e.png](https://img-blog.csdnimg.cn/img_convert/95834269bcea9f614ced2103a0e5fe3e.png)
检查发现openssl包已经安装了,然后按照网上的文章,修改Modules/Setup.dist中,找到SSL配置部分,如下截图所示
关注,转发,私信小编“01”即可免费领取Python学习资料!
![0976747f31289c97affefc765e307b40.png](https://img-blog.csdnimg.cn/img_convert/0976747f31289c97affefc765e307b40.png)
[root@db-server ~]# yum list installed |grep opensslopenssl.x86_64 1:1.0.2k-19.el7 @base openssl-libs.x86_64 1:1.0.2k-19.el7 @base
# Socke