繁体   English   中英

IPython内核在启动时死亡

[英]IPython kernel dies on startup

我正在运行64位Ubuntu,并使用Anaconda发行版中的IPython。 当我在终端中输入“ ipython notebook”时,一切都会按预期启动。 但是,当我创建一个新笔记本或打开现有笔记本时,内核死亡,尝试重新启动并失败。

这是来自终端的整个会话的信息,其中包含错误:

[W 08:54:43.010 NotebookApp] ipywidgets package not installed.  Widgets are unavailable.
[I 08:54:43.018 NotebookApp] Serving notebooks from local directory: /home/eric
[I 08:54:43.018 NotebookApp] 0 active kernels 
[I 08:54:43.018 NotebookApp] The IPython Notebook is running at: http://localhost:8888/
[I 08:54:43.018 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
Created new window in existing browser session.
[I 08:54:47.720 NotebookApp] Creating new notebook in 
[W 08:54:48.468 NotebookApp] 404 GET /nbextensions/widgets/notebook/js/extension.js?v=20150825085443 (127.0.0.1) 5.44ms referer=http://localhost:8888/notebooks/Untitled2.ipynb?kernel_name=python2
[I 08:54:48.529 NotebookApp] Kernel started: e595c923-cc96-4ab7-ae39-d2fe4eac1261
[I 08:54:51.531 NotebookApp] KernelRestarter: restarting kernel (1/5)
[W 08:54:58.554 NotebookApp] Timeout waiting for kernel_info reply from e595c923-cc96-4ab7-ae39-d2fe4eac1261
[I 08:55:00.535 NotebookApp] KernelRestarter: restarting kernel (1/5)
WARNING:root:kernel e595c923-cc96-4ab7-ae39-d2fe4eac1261 restarted
*** stack smashing detected ***: /home/eric/anaconda/bin/python terminated
Aborted (core dumped)

当我从终端使用IPython(无html)时,一切正常。 我已经重新安装了IPython,但这并没有改变任何东西。 很感谢任何形式的帮助。 谢谢!

尝试跑步

import socket
print( '127.0.0.1 ' + socket.gethostname() + '.local' )

并将输出添加到/ etc / hosts如果socket.gethostbyname_ex中出现问题,它将有所帮助

相关问题gethostbyname_ex(hostname)非常慢

这也可能有帮助

conda remove pyzmq
conda install pyzmq=14.6.0

https://github.com/jupyter/notebook/issues/297

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM