Import error with module _ssl for Python 3.3

醉酒当歌 提交于 2019-12-11 13:23:06

问题


I am programming in Python 3.3 on the latest version of Ubuntu. I am writing code for a project involving a library that works with Twitter. Here is the output from the terminal I have:

Traceback (most recent call last):
File "tryout.py", line 2, in <module>
  import twitter
File "/home/owner/Documents/twitter/__init__.py", line 15, in <module>
  from .stream import TwitterStream
File "/home/owner/Documents/twitter/stream.py", line 9, in <module>
  from ssl import SSLError
File "/usr/local/lib/python3.3/ssl.py", line 60, in <module>
  import _ssl             # if we can't import it, let the error propagate
ImportError: No module named '_ssl'

I've been looking around to find a solution for the _ssl error but can't seem to find one that I could follow.

来源:https://stackoverflow.com/questions/15214791/import-error-with-module-ssl-for-python-3-3

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!