2013-04-29 63 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包安裝。