The kernel appears to have died. It will restart automatically.

时间:2024-03-24 22:55:39

在Anaconda环境下运行jupyter notebook时,出现了The kernel appears to have died. It will restart automatically报错!于是google了一下,看了很多解决方法,类似版本不匹配、更新包之类的建议均无果。突然想起来是不是前几天跑了一篇大佬论文的实验还在占用线程,决定去看看。
以window为例:
1.先进入C:\Program Files\NVIDIA Corporation\NVSMI文件夹。(ubuntu不用进行此步)
2.输入命令:nvidia-smi(ubuntu输入:watch -n 10 nvidia-smi)
查看还终止的进程。
3.结束进程:kill -9 PID(如:kill -9 15144)
此时,可以正常使用jupyter了。
The kernel appears to have died. It will restart automatically.