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 命令的列表,事实上,notebook"不是命令之一.我正在运行 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.
我在谷歌上搜索,我看到一些人在使用最新版本的 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屋!