尝试运行jupyter Notebook时,开始无处避免此错误。我也安装了最新的python,但是这个mac-python问题是我想从python2运行的问题。任何同时维护这两个python的指南/教程的链接也将有所帮助,但请立即寻求此修复程序。
File "/anaconda2/bin/jupyter-notebook", line 7, in <module>
from notebook.notebookapp import main
File "/anaconda2/lib/python2.7/site-packages/notebook/notebookapp.py", line 60, in <module>
from tornado import httpserver
File "/anaconda2/lib/python2.7/site-packages/tornado/httpserver.py", line 33, in <module>
from tornado.http1connection import HTTP1ServerConnection, HTTP1ConnectionParameters
File "/anaconda2/lib/python2.7/site-packages/tornado/http1connection.py", line 30, in <module>
from tornado import iostream
File "/anaconda2/lib/python2.7/site-packages/tornado/iostream.py", line 40, in <module>
from tornado.netutil import ssl_wrap_socket, _client_ssl_defaults, _server_ssl_defaults
File "/anaconda2/lib/python2.7/site-packages/tornado/netutil.py", line 44, in <module>
_client_ssl_defaults = ssl.create_default_context(
AttributeError: 'module' object has no attribute 'create_default_context'```
$ python3 -V
Python 3.7.4
$ python -V
Python 2.7.3 :: Continuum Analytics, Inc.
答案 0 :(得分:0)
我有同样的问题。 conda update pip
为我工作。