【发布时间】: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