[英]Failed to start the Kernel in Jupyter Notebook in VS Code
我尝试在 M1 MacBook Air 的 VS Code 中运行笔记本。但最终出现此错误:
Failed to start the Kernel.
Traceback (most recent call last):
File "/Users/akshitdudeja/.vscode/extensions/ms-toolsai.jupyter-2022.6.1201981810/pythonFiles/vscode_datascience_helpers/jupyter_daemon.py", line 158, in _start_notebook
from notebook import notebookapp as app
File "/Users/akshitdudeja/Library/Python/3.8/lib/python/site-packages/notebook/notebookapp.py", line 57, in <module>
raise ImportError(_("The Jupyter Notebook requires tornado >= 5.0, but you have %s") % tornado.version)
ImportError: The Jupyter Notebook requires tornado >= 5.0, but you have 4.5.3
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/akshitdudeja/.vscode/extensions/ms-toolsai.jupyter-2022.6.1201981810/pythonFiles/vscode_datascience_helpers/daemon/daemon_python.py", line 54, in _decorator
return func(self, *args, **kwargs)
File "/Users/akshitdudeja/.vscode/extensions/ms-toolsai.jupyter-2022.6.1201981810/pythonFiles/vscode_datascience_helpers/jupyter_daemon.py", line 111, in m_exec_module_observable
self._start_notebook(args, cwd, env)
File "/Users/akshitdudeja/.vscode/extensions/ms-toolsai.jupyter-2022.6.1201981810/pythonFiles/vscode_datascience_helpers/jupyter_daemon.py", line 160, in _start_notebook
from notebook import app as app
ImportError: cannot import name 'app' from 'notebook' (/Users/akshitdudeja/Library/Python/3.8/lib/python/site-packages/notebook/__init__.py)
Failed to run jupyter as observable with args notebook --no-browser --notebook-dir="/Users/akshitdudeja/VS Code/ML/Scikit Learn/Archive/titanic" --config=/var/folders/x7/p_lhpn8162g973v2nq2lmwyh0000gn/T/363e7ce2-17bc-4e69-89f3-87611ae3e03a/jupyter_notebook_config.py --NotebookApp.iopub_data_rate_limit=10000000000.0.
View Jupyter log for further details.
尝试使用以下命令更新 jupyter:
pip install -U jupyter
ImportError(("Jupyter Notebook 需要 tornado >= 5.0,但你有 %s") % tornado.version)
您可以尝试以下方法来升级龙卷风
pip install tornado --upgrade
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.