Jupyter 笔记本使用错误 shell

Jupyter Notebook using wrong shell

使用 Anaconda,当打开 Jupyter notebook 时,它会尝试使用我已卸载的 /etc/fish shell。重新安装了 Anaconda,但仍然尝试使用 fish shell。

[Command not found: /bin/fish]

[Could not create a new process and open a pseudo-tty.]

我已编辑 /etc/shells 以不包含对鱼的引用。

有没有办法编辑 Jupyter 首选项,还是我遗漏了其他东西?

供参考:IPython qtconsole 可以正常打开。

解决者:

正在卸载 iTerm2、Anaconda、fish 和 zsh shell。 清除引用 fish 和 zsh

的 /etc/shells 文件

编辑终端(不是 iTerm2)bash_profile 和 /.bashrc 文件添加到文件顶部:

/.bashrc 文件:

export BASH_CONF="bash_profile"

/.bash_profile 文件:

export BASH_CONF="bashrc"

重新安装 Anaconda。