运行jupyter notebook 出现如下报错
环境 anaconda2 tensorflow1.10.1 python2.7 jupyter notebook 4.2.1
报错如下:
Kernel started: 3ffc7b27-5215-4d1c-b6c2-3c4236ba7789
Traceback (most recent call last):
File "/home/ghf/anaconda2/envs/tensorflow/lib/python2.7/runpy.py", line 174, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "/home/ghf/anaconda2/envs/tensorflow/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/home/ghf/anaconda2/envs/tensorflow/lib/python2.7/site-packages/ipykernel_launcher.py", line 16, in <module>
app.launch_new_instance()
File "/home/ghf/anaconda2/envs/tensorflow/lib/python2.7/site-packages/traitlets/config/application.py", line 657, in launch_instance
app.initialize(argv)
File "<decorator-gen-121>", line 2, in initialize
File "/home/ghf/anaconda2/envs/tensorflow/lib/python2.7/site-packages/traitlets/config/application.py", line 87, in catch_config_error
return method(app, *args, **kwargs)
File "/home/ghf/anaconda2/envs/tensorflow/lib/python2.7/site-packages/ipykernel/kernelapp.py", line 469, in initialize
self.init_sockets()
File "/home/ghf/anaconda2/envs/tensorflow/lib/python2.7/site-packages/ipykernel/kernelapp.py", line 260, in init_sockets
self.init_iopub(context)
File "/home/ghf/anaconda2/envs/tensorflow/lib/python2.7/site-packages/ipykernel/kernelapp.py", line 268, in init_iopub
self.iopub_thread = IOPubThread(self.iopub_socket, pipe=True)
File "/home/ghf/anaconda2/envs/tensorflow/lib/python2.7/site-packages/ipykernel/iostream.py", line 66, in __init__
self.io_loop = IOLoop(make_current=False)
File "/home/ghf/anaconda2/envs/tensorflow/lib/python2.7/site-packages/tornado/util.py", line 209, in __new__
instance.initialize(**args)
File "/home/ghf/anaconda2/envs/tensorflow/lib/python2.7/site-packages/tornado/platform/epoll.py", line 26, in initialize
super(EPollIOLoop, self).initialize(impl=select.epoll(), **kwargs)
TypeError: initialize() got an unexpected keyword argument 'make_current'
KernelRestarter: restart failed
The kernel has died, and the automatic restart has failed. It is possible the kernel cannot be restarted. If you are not able to restart the kernel, you will still be able to save the notebook, but running code will no longer work until the notebook is reopened.