我正在运行Ubuntu 64位并使用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,但这没有改变任何东西。很感谢任何形式的帮助。谢谢!
答案 0 :(得分:1)
尝试运行
import socket
print( '127.0.0.1 ' + socket.gethostname() + '.local' )
并将输出添加到/ etc / hosts 如果socket.gethostbyname_ex
中有问题,它会有所帮助相关问题gethostbyname_ex(hostname) extremely slow
这也可能有所帮助
conda remove pyzmq
conda install pyzmq=14.6.0