【小虫】Jupyter Nottbook内核重启失败AttributeError: module 'pdb' has no attribute 'Pdb'

Jupyter Nottbook打开失败

AttributeError: module 'pdb' has no attribute 'Pdb'
[W 09:07:16.922 NotebookApp] KernelRestarter: restart failed
[W 09:07:16.922 NotebookApp] Kernel 2cc6b140-a9a7-4ced-b8cd-3745e94b701b died, removing from map.
kernel 2cc6b140-a9a7-4ced-b8cd-3745e94b701b restarted failed!
[W 09:07:16.948 NotebookApp] 410 DELETE /api/sessions/187b2fa7-489d-41c3-86f9-f5ebea684720 (::1): Kernel deleted before session
[W 09:07:16.948 NotebookApp] Kernel deleted before session
[W 09:07:16.953 NotebookApp] 410 DELETE /api/sessions/187b2fa7-489d-41c3-86f9-f5ebea684720 (::1) 5.98ms referer=http://localhost:8888/notebooks/0CNN/Untitled2.ipynb
[W 09:07:39.107 NotebookApp] Timeout waiting for kernel_info reply from 847290c9-589b-463c-846b-095f79480c99
[E 09:07:39.108 NotebookApp] Error opening stream: HTTP 404: Not Found (Kernel does not exist: 847290c9-589b-463c-846b-095f79480c99)

参考了
1、Jupyter Notebook kernel 无法启动/重启等问题解决汇总
2、The kernel has died, and the automatic restart has failed

受到第二个链接中的最后一个回答的启发:D

解决:
尝试在另一个目录中打开一个新的笔记本,内核可以启动,看起来内核只是在特定的目录路径卡死
新建一个目录,把代码复制过去就可以运行了

(问题原因不清楚)

你可能感兴趣的:(机器学习)