使用Jupyter Notebook时出现“The kernel has died, and the automatic restart has failed.”错误解决方案
可能是prompt-toolkit
的版本过高导致的,只要降低版本就可以了。
pip install --upgrade prompt-toolkit==1.0.5
解释:
因为安装有jupyter
包,这个包依赖prompt-toolkit
版本是2.0.0以上的版本; 而ipython
包依赖的是1.0.15的版本。 估计是装Jupyter
时,将版本更新了,所以运行的时候报错 ,把版本切成1.0.15即可。