![](/img/trans.png)
[英]Jupyter notebook & Anaconda won't run after reinstalling python
[英]Jupyter Notebook cells won't run
我使用 Anaconda 打開了一個筆記本,我輸入了令牌,它打開得很好。 它運行的內核是 Python3。 但是,它沒有運行任何單元。
我試過檢查安裝的內核,我試過在我的命令中運行 jupyter 故障排除。 我的命令一直顯示這樣的塊:
[I 17:36:41.918 NotebookApp] Adapting from protocol version 5.1 (kernel 543df2b4-283f-43bc-afee-c4580df2761b) to 5.3 (client).
[E 17:36:41.920 NotebookApp] Uncaught exception GET /api/kernels/543df2b4-283f-43bc-afee-c4580df2761b/channels?session_id=aaa5c54bff4f44e2ac919aafb4973662 (::1)
HTTPServerRequest(protocol='http', host='localhost:8889', method='GET', uri='/api/kernels/543df2b4-283f-43bc-afee-c4580df2761b/channels?session_id=aaa5c54bff4f44e2ac919aafb4973662', version='HTTP/1.1', remote_ip='::1')
Traceback (most recent call last):
File "/Users/Tamira/anaconda3/lib/python3.7/site-packages/tornado/websocket.py", line 546, in _run_callback
result = callback(*args, **kwargs)
File "/Users/Tamira/anaconda3/lib/python3.7/site-packages/notebook/services/kernels/handlers.py", line 274, in open
self.create_stream()
File "/Users/Tamira/anaconda3/lib/python3.7/site-packages/notebook/services/kernels/handlers.py", line 127, in create_stream
meth = getattr(km, 'connect_' + channel)
AttributeError: 'MappingKernelManager' object has no attribute 'connect_control'
您的 Jupyter 安裝組件相互之間已經過時。
我建議要么從頭開始重新安裝 Anaconda,要么升級筆記本使用的各個軟件包。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.