【发布时间】: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 命令的具体说明?