IPython内核在启动时死亡

2024-06-25 06:27:27 发布

您现在位置:Python中文网/ 问答频道 /正文

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

以下是来自终端的整个会话的信息,错误如下:

[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,但这并没有改变任何东西。非常感谢任何帮助。谢谢!在


Tags: fromhttp终端homeipython笔记本kerneleric