【问题标题】:installing jupyter notebooks on macOS在 macOS 上安装 jupyter 笔记本
【发布时间】:2020-02-28 19:03:15
【问题描述】:

当我执行 pip install jupyter notebook 时,它似乎已安装,然后我运行“jupyter notebook”,它告诉我“zsh: command not found: jupyter”

在 macOS 上使用 zsh 也有关系吗?

还有什么建议可以解决这个问题吗? 谢谢! 强尼

【问题讨论】:

标签: python macos pip jupyter


【解决方案1】:

确保 juypter 的安装位置在 zsh shell 中的执行路径上。 (如果“which jupyter”没有列出有效路径,那就是你的问题。:)

应该看起来像这样,但位置在您的机器上:

(jupyter) c-67-188-202-51{rich:~/src/python/udemy/completePythonBootcamp} which jupyter
/Users/rich/src/python/udemy/completePythonBootcamp/jupyter/bin/jupyter

【讨论】:

    【解决方案2】:

    我遇到了类似的问题。如果您使用--user 安装它,请尝试在.zshrc 中的路径变量中添加类似/Users/<name_of_your_user>/Library/Python/3.8/bin 的路径。用用户名替换<name_of_your_user>,也许你有另一个版本的python,文件夹3.8应该替换为相应的版本。它帮助了我。请检查这是否适合您,如果有效,请将问题标记为已解决。

    【讨论】:

      猜你喜欢
      • 2018-07-19
      • 2018-07-28
      • 1970-01-01
      • 1970-01-01
      • 2023-01-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多