解决Anaconda下“The kernel has died, and the automatic restart has failed.” 的问题

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/wobeatit/article/details/78885339
       近期在使用Anaconda写cs231n作业,一开始用anaconda做ipython作业还比较顺利,没有出现软件报错什么情况。可是重装系统之后,再次安装完anaconda后去做cs231n作业时就出现了报错:

        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.

        第一次用anaconda出现问题,自然是不知道如何解决,于是在网上搜索解决方案,大多都是在stack overflow才能找到很少的解决方案,我陆陆续续也尝试了几个方法,均发现不可行。。

 

       突然在某个评论下发现这句,突然有些想法了,因为我安装的anaconda是以前的安装包,可能部分库没有更新,一些漏洞没有解决,于是为了保险起见,我直接更新了notebook以及jupyter库,在anaconda Prompt 中分别输入一下两句:

       conda upgrade notebook

       conda upgrade jupyter

       之后再次在prompt中输入jupyter notebook 后打开ipython文件,没有出现报错情况!

       (附:建议大家在初次安装完anaconda后,为了避免之后可能出现库未更新的问题,不妨先把anaconda里所有的库全部更新~)

猜你喜欢

转载自blog.csdn.net/wobeatit/article/details/78885339