在python 2.5中安装ssl包的问题
我注意到我有这个警告:
WARNING 2011-05-07 00:50:51,371 urlfetch_stub.py:106] 找不到 ssl 包。 urlfetch 将无法验证 SSL 证书。
因此我下载了 ssl 1.15 库。
尝试使用 setup.py 安装并得到以下信息:
错误:包目录'ssl'不存在
更新:
我将 python 添加到路径中,现在我收到一个新错误,有关 Visual Studio 的信息2003 年,不得不使用 MingW32。添加 -cmingw32
参数不起作用(选项 m 无法识别)。
I noticed I have this warning:
WARNING 2011-05-07 00:50:51,371 urlfetch_stub.py:106] No ssl package found. urlfetch will not be able to validate SSL certificates.
So I downloaded the ssl 1.15 library.
Tried to install using setup.py and got this:
error: package directory 'ssl' does not exist
Update:
I added python to the path, now I'm getting a new error, something about visual studio 2003, and having to use MingW32. Adding -cmingw32
parameter doesn't work (option m is not recognised).
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
在我的计算机上尝试 python 26 后,唯一的结论是我遇到了这个错误:
http://code.google.com/p/googleappengine/issues/detail?id=4824&q=ssl&colspec=ID%20Type%20Component%20Status%20Stars%20Summary%20Language%20Priority% 20Owner%20Log
(因为python 26应该内置了ssl)
哦 出色地。
After trying python 26 on my computer, the only conclusion is that I'm experiencing this bug:
http://code.google.com/p/googleappengine/issues/detail?id=4824&q=ssl&colspec=ID%20Type%20Component%20Status%20Stars%20Summary%20Language%20Priority%20Owner%20Log
(because python 26 is supposed to have ssl built in)
Oh well.
您可以使用 pip 安装它。这非常简单,只需进入终端并输入
pip install ssl
,这将自动安装 SSL 模块。但是,您可能需要 root 权限。You are able to install this by using pip. It's very easy, just go to a terminal and type,
pip install ssl
, which will automatically install the SSL module. You may need root privileges, however.