Jupyter Notebook命令在Mac上不起作用 [英] Jupyter notebook command does not work on Mac
问题描述
我在Macbook air上使用pip安装了jupyter.尝试执行命令jupyter notebook
时,出现错误
I installed jupyter using pip on my macbook air. Upon trying to execute the command jupyter notebook
, I get an error
jupyter: 'notebook' is not a Jupyter command
我使用--h选项获取所有jupyter命令的列表,实际上,笔记本"不是命令之一.我正在运行python 2.7,并且在安装jupyter之前已经安装了它.
I used the --h option to get a listing of all jupyter commands and indeed, 'notebook' is not one of the commands. I am running python 2.7 and it was already installed before I installed jupyter.
我在Google上进行搜索,发现有些人遇到了最新版本的jupyter,但没有类似的问题.有人可以指出我正确的方向吗?
I searched on google and I see a similar problem some people have faced with the latest version of jupyter but I don't see any solutions. Can somebody point me in the right direction?
which -a pip
:/usr/local/bin/pip
which -a pip
: /usr/local/bin/pip
which -a jupyter
:/usr/local/bin/jupyter
which -a jupyter
: /usr/local/bin/jupyter
推荐答案
我遇到了同样的问题.在浏览了成千上万的页面并尝试了尽可能多的解决方案之后,这是唯一对我有用的东西:
I had the same problem. After looking to a gazillion of pages on line and trying as many solutions, this is the only thing that worked for me:
pip uninstall notebook
pip install --upgrade notebook
我不确定是否需要进行升级",但是之后我就拥有了
I am not sure that the "upgrade" is necessary, but after that I had
jupyter-notebook
和
jupyter notebook
作为命令.
这篇关于Jupyter Notebook命令在Mac上不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!