打开笔记本时,内核在 jupyter notebook 中不断死亡

kernal keeps on dying in jupyter notebook when opening a notebook

打开任何 jupyter notebook 时,即使其中没​​有代码,我都会收到 'Dead kernal' 消息:

The kernel has died, and the automatic restart has failed. It is possible the kernel cannot be restarted. If you are not able to restart the kernel, you will still be able to save the notebook, but running code will no longer work until the notebook is reopened.

错误似乎如下(取自终端window):

TypeError: metaclass conflict: the metaclass of a derived class must be a (non-strict) subclass of the metaclasses of all its bases

我尝试了 pip 卸载和 pip 安装 jupyter,但我仍然遇到同样的错误。

操作系统:macOS Sierra 版本 10.12.1, Python 版本:conda 4.1.11

非常欢迎帮助!

这是关于这个 github 问题的答案,请提供: https://github.com/jupyter/notebook/issues/1892

卸载以下所有内容并重新安装(运行 conda clean -tipsy 卸载后清除缓存):

ipy内核, ipython, jupyter_client, jupyter_core, 特征, ipython_genutils

在上面之后还需要conda安装jupyter