本文介绍了向Python 2.6添加SSL支持的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试在Python 2.6中使用ssl模块,但被告知该模块不可用.安装OpenSSL后,我重新编译了2.6,但问题仍然存在.

I tried using the ssl module in Python 2.6 but I was told that it wasn't available. After installing OpenSSL, I recompiled 2.6 but the problem persists.

有什么建议吗?

推荐答案

您是否安装了OpenSSL开发库?例如,我必须在CentOS上安装openssl-devel.在Ubuntu上,sudo apt-get build-dep python2.5做到了这一点(甚至对于Python 2.6).

Did you install the OpenSSL development libraries? I had to install openssl-devel on CentOS, for example. On Ubuntu, sudo apt-get build-dep python2.5 did the trick (even for Python 2.6).

这篇关于向Python 2.6添加SSL支持的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-04 13:53
查看更多