fish shell 找不到 jupyter notebook
fish shell cannot find jupyter notebook
我只是一个初学者,尝试使用 fish shell。
安装fish后命令行找不到jupyter notebook shell。
> 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
我是否遗漏了一些路径变量设置?
您必须在 bash 配置脚本之一中自定义您的 $PATH,例如 ~/.bashrc。可能通过采购帮助脚本来设置 jupyter 的环境。启动 bash 和 运行 type jupyter
和 echo $PATH
。然后将其与 echo $PATH
when 运行ning fish 进行比较并添加缺少的目录。您需要通过将 set PATH $PATH /missing/directory
添加到您的 ~/.config/fish/config.fish.
来使其永久化
另一种选择是添加行
#!/bin/bash
至anaconda3/bin/jupyter_mac.command
。
有关详细信息,请参阅 this issue。
我只是一个初学者,尝试使用 fish shell。
安装fish后命令行找不到jupyter notebook shell。
> 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
我是否遗漏了一些路径变量设置?
您必须在 bash 配置脚本之一中自定义您的 $PATH,例如 ~/.bashrc。可能通过采购帮助脚本来设置 jupyter 的环境。启动 bash 和 运行 type jupyter
和 echo $PATH
。然后将其与 echo $PATH
when 运行ning fish 进行比较并添加缺少的目录。您需要通过将 set PATH $PATH /missing/directory
添加到您的 ~/.config/fish/config.fish.
另一种选择是添加行
#!/bin/bash
至anaconda3/bin/jupyter_mac.command
。
有关详细信息,请参阅 this issue。