【问题标题】:'jupyter' is not recognized as an internal or external command, operable program or batch file'jupyter' 不是内部或外部命令、可运行程序或批处理文件
【发布时间】:2020-06-08 05:48:14
【问题描述】:
当我在 cmd 中输入 jupyter notebook 时,出现以下错误:
'jupyter' 未被识别为内部或外部命令,
可运行的程序或批处理文件。
而当我输入 jupyter-notebook 时,它会成功打开笔记本。
为什么我会遇到这个错误?
(我已经安装了 jupyter 并且我能够在使用 jupyter notebook 命令安装后第一次打开笔记本,但不能从第二次开始)
【问题讨论】:
标签:
python
jupyter-notebook
【解决方案1】:
请试试这个命令;首先
$ py -m notebook
否则
$ python -m pip install jupyter --user
$ jupyter notebook
【解决方案2】:
您可以使用Anaconda prompt (Anaconda)打开您的jupyter notebook,而不是使用command prompt
jupyter notebook 命令将在anaconda prompt 中工作
【解决方案3】:
1.打开cmd。
2.Type:pip install jupyter notebook,使用pip install jupyter。
3.现在输入:python -m notebook。