在python2.5中安装ssl包的问题

2024-04-26 11:26:01 发布

您现在位置:Python中文网/ 问答频道 /正文

我注意到我有一个警告:

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.

所以我下载了ssl1.15库。在

尝试使用安装设置.py得到了这个:

error: package directory 'ssl' does not exist

更新:

我在路径中添加了python,现在我得到了一个新的错误,关于visualstudio2003,并且必须使用MingW32。添加-cmingw32参数无效(选项m无法识别)。在


Tags: tonopy警告sslpackagenotable
2条回答

您可以使用pip安装这个。这很简单,只要转到终端并输入pip install ssl,它将自动安装SSL模块。但是,您可能需要root权限。在

在我的电脑上试用了python26之后,唯一的结论是我遇到了这个bug:

http://code.google.com/p/googleappengine/issues/detail?id=4824&q=ssl&colspec=ID%20Type%20Component%20Status%20Stars%20Summary%20Language%20Priority%20Owner%20Log

(因为python26应该内置ssl)

哦,好吧。在

相关问题 更多 >