繁体   English   中英

Jupyter Notebook中缺少python内核

[英]Missing python kernel in jupyter notebook

我是jupyter / ipython的新手。 我通常在远程计算机上启动笔记本并创建一个ssh隧道。 有关如何建立隧道的详细信息,请访问: http//www.hydro.washington.edu/~jhamman/hydro-logic/blog/2013/10/04/pybook-remote/

但是,很多时候,当我启动笔记本时,它会报告0个活动内核(并非所有时间)。 以下是截图:

-bash-4.1$ jupyter notebook --no-browser --port=7777
[NotebookApp] Serving notebooks from local directory: /x/y/z
[NotebookApp] 0 active kernels 
[NotebookApp] The Jupyter Notebook is running at: http://localhost:7777/
[NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).

我显然有python。

python --version
Python 2.7.11 :: Anaconda 2.0.1 (64-bit)

有人可以向我解释这种不稳定的行为吗? 以及如何解决?

任何帮助,将不胜感激。

谢谢

附件是我得到的错误:

在此输入图像描述

我也通过ssh隧道使用jupyter,并且收到0活动内核消息,并且我无法运行任何笔记本。 我的错误快照在这里 使用sudo -H pip install jupyter直接安装jupyter时,ipython内核未正确sudo -H pip install jupyter 我通过使用以下方法更新ipython内核来解决它:

  1. sudo apt-get -y install ipython ipython-notebook
  2. sudo -H pip install jupyter

如果它不起作用,请尝试卸载jupyter,然后按照链接中的说明按顺序安装软件包。

暂无
暂无

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

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