【问题标题】:ipython notebook not launchingipython笔记本没有启动
【发布时间】:2014-04-30 03:05:55
【问题描述】:

我无法启动 ipython 笔记本。我在命令提示符中使用了命令“ipython notebook”,但我收到一条错误消息,提示“ipython”未被识别为命令。我有 Python 3.3 和 ipython 1.2.1。此命令适用于我的另一台 Windows 机器,我使用相同的过程安装 ipython。唯一的区别是我在我的另一台 Windows 机器上使用 Python 2.7。我觉得有一个非常简单的修复,或者我犯了一个愚蠢的错误。有什么想法吗?

编辑: 我在下面的 cmets 中尝试了 ThomasK 的建议,并收到下图中显示的以下错误。

【问题讨论】:

  • 试试ipython3 notebook。或者升级到 IPython 2.0,它会在 Python 3 上同时安装 ipythonipython3
  • 我尝试了 ipython3 notebook 并尝试升级到 Iptyhon 2.0。还是没有运气。
  • IPython 可能不在您的%PATH% 上。可以py -m IPython吗?
  • 该命令在命令提示符下工作得很好——它在命令提示符 shell 中启动 ipython。
  • 看起来你没有安装 pyzmq。您可以使用 pip 或 exe installer 安装它。但是可能还有其他你没有设置的东西。我们建议下载 Anaconda 之类的内容,其中包含所有必要的软件包。如果你想使用 Python 3,你可以试试Pyzo,类似的。

标签: python ipython ipython-notebook


【解决方案1】:

作为答案转发:

看起来你没有安装 pyzmq。您可以使用 pip 或 exe 安装程序安装它。但是可能还有其他你没有设置的东西。我们建议下载像 Anaconda 这样的软件,其中包含所有必要的软件包。如果你想使用 Python 3,你可以试试 Pyzo,它是类似的。

【讨论】:

    【解决方案2】:

    在撰写本文时,收到这些消息是正常的。这只是意味着您缺少一些 python 包。我建议按如下方式安装它们:pip install --user [package]。它可能会抱怨的其他问题列在here

    jinja2, needed for the notebook
    sphinx, needed for nbconvert
    pyzmq, needed for IPython’s parallel computing features, qt console and notebook
    pygments, used by nbconvert and the Qt console for syntax highlighting
    tornado, needed by the web-based notebook
    nose, used by the test suite
    

    【讨论】:

      猜你喜欢
      • 2014-09-14
      • 2014-09-16
      • 2015-10-14
      • 2014-11-22
      • 2016-02-22
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多