鱼壳找不到jupyter笔记本

时间:2017-03-17 15:36:45

标签: jupyter-notebook fish

我只是一个初学者并尝试使用鱼壳。

安装鱼壳后,命令行找不到jupyter笔记本。

> jupyter notebook
fish: Unknown command 'jupyter'

jupyter安装在pip3中,最初在bash中工作正常。

> pip3 show jupyter
Name: jupyter
Version: 1.0.0
Summary: Jupyter metapackage. Install all the Jupyter components in one go.
Home-page: http://jupyter.org
Author: Jupyter Development Team
Author-email: jupyter@googlegroups.org
License: BSD
Location: /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages
Requires: ipywidgets, ipykernel, nbconvert, notebook, qtconsole, jupyter-console

我是否错过了一些路径变量设置?

2 个答案:

答案 0 :(得分:2)

您必须在其中一个bash配置脚本(例如〜/ .bashrc)中自定义$ PATH。可能通过寻找帮助脚本来为jupyter设置环境。启动bash并运行type jupyterecho $PATH。然后在运行fish时将其与echo $PATH进行比较并添加缺少的目录。您希望通过将set PATH $PATH /missing/directory添加到〜/ .config / fish / config.fish来使其永久化。

答案 1 :(得分:0)

另一种选择是添加行

#!/bin/bash

anaconda3/bin/jupyter_mac.command

有关更多信息,请参见this issue