2017-03-17 149 views
0

我只是一个初学者,尝试使用鱼壳。鱼壳找不到jupyter笔记本

我安装了鱼壳后,命令行找不到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: [email protected] 
License: BSD 
Location: /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages 
Requires: ipywidgets, ipykernel, nbconvert, notebook, qtconsole, jupyter-console 

我想念路径变量设置吗?

回答

2

您必须在诸如〜/ .bashrc之类的bash配置脚本之一中自定义您的$ PATH。可能通过寻找帮手脚本来设置jupyter的环境。启动bash并运行type jupyterecho $PATH。然后在运行鱼时将其与echo $PATH进行比较并添加缺少的目录。你会想通过将set PATH $PATH /missing/directory添加到你的〜/ .config/fish/config.fish来使其永久生效。

+0

谢谢,我添加我的python3斌路径鱼配置后问题解决。 – Jim