我只是一个初学者并尝试使用鱼壳。
安装鱼壳后,命令行找不到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
我是否错过了一些路径变量设置?
答案 0 :(得分:2)
您必须在其中一个bash配置脚本(例如〜/ .bashrc)中自定义$ PATH。可能通过寻找帮助脚本来为jupyter设置环境。启动bash并运行type jupyter
和echo $PATH
。然后在运行fish时将其与echo $PATH
进行比较并添加缺少的目录。您希望通过将set PATH $PATH /missing/directory
添加到〜/ .config / fish / config.fish来使其永久化。
答案 1 :(得分:0)