【问题标题】:python 'jupyter' is not recognized as an internal or external commandpython 'jupyter' 未被识别为内部或外部命令
【发布时间】:2022-01-07 23:21:12
【问题描述】:

我正在尝试使用 python 中的 jupyter 命令,我尝试卸载并安装 jupyter 但这不起作用。即

!jupyter nbconvert --to script test.ipynb

!jupyter nbextension enable 

错误是:

'jupyter' 未被识别为内部或外部命令, 可运行的程序或批处理文件。

我正在使用窗口 10。我的 juypter 笔记本正在工作,但是打开我写的 juypter 笔记本 "python -m notebook" 终端中的代码。 "Jupyter notebook"不要打开任何东西并显示以下错误:

jupyter : 术语“jupyter”未被识别为一个名称 cmdlet、函数、脚本文件或可运行的程序。检查拼写 的名称,或者如果包含路径,请验证该路径是 正确并重试。在 line:1 char:1 + jupyter notebook +rest part 错误:+ CategoryInfo:ObjectNotFound:(jupyter:String)[], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException

【问题讨论】:

  • 您应该指定您正在使用的操作系统,详细说明您是如何安装 Jupyter 的,以及您是否成功运行了 Jupyter notebook。
  • 我正在使用窗口 10。我的 juypter 笔记本正在工作,但是可以打开 juypter 笔记本我在终端中编写“python -m notebook”代码。 “Jupyter notebook”不打开任何东西并显示以下错误:jupyter:术语“jupyter”未被识别为 cmdlet、函数、脚本文件或可运行程序的名称。检查名称的拼写,或者如果包含路径,请验证路径是否正确并重试。在 line:1 char:1 + jupyter notebook + ~~~~~~~
  • 错误的其余部分:+ CategoryInfo : ObjectNotFound: (jupyter:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException
  • 显然 Jupyter 不存在于您的 PATH 中,Python 可以将其作为命令行程序找到。你用的是什么 Python 和 Jupyter 安装?您是否按照他们关于如何在安装 Jupyter 后调用它的说明进行操作?您是否遵循有关如何从 Python 以这种方式调用 jupyter 命令的具体说明?

标签: python ipython


【解决方案1】:

您需要将 Jupyter 添加到您的 PATH,您可以做的另一件事是安装 Anaconda。

【讨论】:

  • 正如目前所写,您的答案尚不清楚。请edit 添加其他详细信息,以帮助其他人了解这如何解决所提出的问题。你可以找到更多关于如何写好答案的信息in the help center
猜你喜欢
  • 2019-02-16
  • 1970-01-01
  • 2014-04-29
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2013-10-06
  • 2013-10-11
  • 2013-01-25
相关资源
最近更新 更多