向Python 2.6添加SSL支持 [英] Adding SSL support to Python 2.6

查看:157
本文介绍了向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支持的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆