【问题标题】:Error executing Jupyter command 'notebook': [Errno 2] No such file or directory执行 Jupyter 命令“笔记本”时出错:[Errno 2] 没有这样的文件或目录
【发布时间】:2018-02-11 10:11:52
【问题描述】:

我正在使用 macbook pro os x El Capitan 版本 10.11.6,我刚开始学习 python,我在我的计算机上安装了 python 3x,然后我尝试安装 jupyter。运行命令后:

pip3 install jupyter

一切正常,但是当我尝试运行命令时:

jupyter notebook

我收到以下错误:

-bash: jupyter: command not found

我也试过了:python3 -m jupyter notebook

Error executing Jupyter command 'notebook': [Errno 2] No such file or directory

有人可以帮忙吗?

【问题讨论】:

  • 我觉得你需要编辑你的.bash_profile
  • 请进一步解释@Sam Chats,因为我已尝试将 jupyter 的路径添加到我的 $PATH 中,但仍然无法正常工作。因此,如果提供进一步的解释,我将不胜感激,因为我对 unix 环境比较陌生,谢谢。
  • 我通过在 finder 中导航到 /Applications/Python 3.6 并双击“Update Shell Profile.command”解决了这个问题
  • 那么,将其添加为答案并接受它:)

标签: macos python-3.x jupyter-notebook jupyter


【解决方案1】:

如果您导航到 jupyter.exe 文件并运行 jupyter notebook,这是否有效?

我在 Windows 10 中遇到了同样的错误。对我有用的是将 jupyter 放在环境变量路径中,

例如:

C:\Anaconda\Scripts\.

对于 Mac,为 bash 评论 +1。可能会考虑将jupyter 路径添加到您的 .bash 文件中

【讨论】:

    猜你喜欢
    • 2018-09-30
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-07-27
    • 2021-09-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多