模块显示在模块列表中但无法导入

时间:2013-04-29 17:31:12

标签: python

我收到错误,因为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 个答案:

答案 0 :(得分:1)

确保您已安装openssl个包。

相关问题