簡體   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