您的位置:首页 > 大数据 > 人工智能

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

2017-12-24 15:39 2616 查看
       近期在使用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里所有的库全部更新~)
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐