2013-04-29 70 views
0

我得到一个错误,因为ssl模块不可用模块出现在模块列表,但无法导入

如果我从Python解释器运行help('modules')它就会列出

当我尝试从解释导入它,我得到

>>> import ssl 

Traceback (most recent call last): 
    File "<stdin>", line 1, in <module> 
    File "/usr/local/lib/python2.7/ssl.py", line 60, in <module> 
    import _ssl    # if we can't import it, let the error propagate 
+1

看起来像这个帖子有你的答案: http://stackoverflow.com/questions/5128845/importerror-no-module-named-ssl – Digfield 2013-04-29 17:34:19

+0

啊,我惊讶的搜索没有赶上那一个。我会在那里尝试解决方案 – Shane 2013-04-29 17:38:33

回答

1

确保已openssl包安装。