【问题标题】:Installing jupyter notebook shows command not found安装 jupyter notebook 显示找不到命令
【发布时间】:2020-12-07 10:42:29
【问题描述】:

我正在尝试安装 jupyter notebook,但是当我运行 jupyter/jupyter-notebook/jupyter notebook 时,它显示找不到命令。我正在使用 python 3.7 并尝试了所有命令,例如:

pip install jupyter              
pip3 install jupyter
python -m pip install jupter notebook
pip install --user jupyter
sudo pip install jupyter

enter image description here

显示异常错误,不知道为什么?

【问题讨论】:

  • 安装失败显示“command not found”。看起来您正在使用 OS X 系统 Python (2.7) 中的 pip 并尝试为 Python 3.7 安装,这将不起作用。不过,您无法猜测您是如何陷入这种境地的,也很难就如何摆脱困境给出任何建议。

标签: python jupyter-notebook


【解决方案1】:

你是用cmd安装的吗? 如果是,那么您想使用以下方式安装经典的 Jupyter Notebook:

pip install notebook

然后,您可以运行:

jupyter notebook
jupyter-notebook
py -m jupyter notebook
py -m jupyter-notebook
python -m jupyter notebook
python -m jupyter-notebook

这对我来说很好。如果您还有问题,请告诉我。

【讨论】:

    猜你喜欢
    • 2020-08-14
    • 2017-02-08
    • 1970-01-01
    • 2021-09-19
    • 2018-07-25
    • 2019-11-24
    • 2021-09-06
    • 2018-08-22
    相关资源
    最近更新 更多