无法在Windows 7中从命令行启动Jupyter Notebook

时间:2020-08-05 18:46:49

标签: python windows jupyter-notebook jupyter jupyter-lab

在Windows 7计算机上,我按照{{3}的说明使用here中的pip安装脚本安装了Python 3.8.5,get-pip.py,并安装了Jupypter Lab + Jupyter Notebook }。尝试启动Jupyter Notebook时,出现以下错误消息:

C:\jupyter notebook
'jupyter' is not recognized as an internal or external command,
operable program or batch file.

出什么问题了?我通过启动Python控制台并执行pip来验证Python和pip -V是否已成功安装。

2 个答案:

答案 0 :(得分:0)

https://jupyter.org/install是常规安装说明,但假设您熟悉Python,pip和系统执行路径搜索。

您需要将pip安装jupyter的位置添加到系统PATH环境变量中。

要检验该理论,请尝试查看与C:\Program Files\Python38\Scripts类似的文件夹中是否有jupyter.exe。

回答questions like this one,说明编辑PATH变量的方法。

编辑用户PATH的屏幕截图示例: screenshot example of editing user's PATH

答案 1 :(得分:0)

我不知道具体情况,但是尝试一下。

"jupyter notebook"

,如果它不起作用,则可能要向环境变量中添加安装位置。