【问题标题】:jupyter notebook not working Mac despite being installed尽管已安装 jupyter notebook 无法正常工作 Mac
【发布时间】:2020-03-28 18:45:26
【问题描述】:

我已经安装了 jupyter notebook,但是当我尝试打开它时,我得到了这个错误。知道为什么吗?

Traceback (most recent call last):
  File "/usr/local/bin/jupyter", line 8, in <module>
    sys.exit(main())
  File "/Library/Python/2.7/site-packages/jupyter_core/command.py", line 247, in main
    command = _jupyter_abspath(subcommand)
  File "/Library/Python/2.7/site-packages/jupyter_core/command.py", line 134, in _jupyter_abspath
    'Jupyter command `{}` not found.'.format(jupyter_subcommand)
Exception: Jupyter command `jupyter-notebook` not found.

【问题讨论】:

  • 它的 jupyter notebook 不是 jupyter-notebook。只需删除破折号并在该位置添加一个空格
  • 遇到了同样的问题...
  • 如果你运行jupyter --version,jupyter-notebook 是否显示为已安装?

标签: python macos jupyter-notebook


【解决方案1】:

一种解决方案是切换到 python3。

我建议通过运行检查是否安装了 python3 python3 --version

如果已安装,pip3 install --upgrade pippip3 install jupyter 应该可以解决您的问题,因为之后 jupyter 应该在其内核中使用 python 3。

如果没有安装python3,我建议安装它,然后重复上述步骤。

【讨论】:

    【解决方案2】:

    不在上面! 1 次运行 > 在终端上

    anaconda 安装成功后...

    2-运行 > 在终端上

    3-运行 > 在终端上关闭然后再次打开终端

    4- 现在运行 > 在终端上

    现在笔记本将显示在此路径上: http://localhost:8888/tree

    就是这样

    【讨论】:

    • 这帮助我在快速操作中找到了正确的路径,将这些烦人的笔记本转换为 py 文件
    猜你喜欢
    • 2019-08-09
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-12-17
    • 2011-12-18
    • 2017-10-05
    • 2015-02-05
    相关资源
    最近更新 更多