为什么 Jupyter Notebook 中出现内核错误?

我是python的新手。打开 jupyter notebook 时,我在内核中收到以下错误。有什么想法可以解决吗?jupyter 的安装是通过 Anaconda3 完成的 - 尝试重新安装和设置环境变量,但到目前为止没有运气。任何帮助将不胜感激。


 Traceback (most recent call last):

      File "C:\Users\drag88\AppData\Roaming\Python\Python37\site-packages\tornado\web.py", line 1699, in _execute

        result = await result

      File "C:\Users\drag88\AppData\Roaming\Python\Python37\site-packages\tornado\gen.py", line 742, in run

        yielded = self.gen.throw(*exc_info)  # type: ignore

      File "C:\Users\drag88\AppData\Roaming\Python\Python37\site-packages\notebook\services\sessions\handlers.py", line 72, in post

        type=mtype))

      File "C:\Users\drag88\AppData\Roaming\Python\Python37\site-packages\tornado\gen.py", line 735, in run

        value = future.result()

      File "C:\Users\drag88\AppData\Roaming\Python\Python37\site-packages\tornado\gen.py", line 742, in run

        yielded = self.gen.throw(*exc_info)  # type: ignore

      File "C:\Users\drag88\AppData\Roaming\Python\Python37\site-packages\notebook\services\sessions\sessionmanager.py", line 88, in create_session

        kernel_id = yield self.start_kernel_for_session(session_id, path, name, type, kernel_name)

      File "C:\Users\drag88\AppData\Roaming\Python\Python37\site-packages\tornado\gen.py", line 735, in run

        value = future.result()

      File "C:\Users\drag88\AppData\Roaming\Python\Python37\site-packages\tornado\gen.py", line 742, in run

        yielded = self.gen.throw(*exc_info)  # type: ignore

      File "C:\Users\drag88\AppData\Roaming\Python\Python37\site-packages\notebook\services\sessions\sessionmanager.py", line 101, in start_kernel_for_session

        self.kernel_manager.start_kernel(path=kernel_path, kernel_name=kernel_name)

      File "C:\Users\drag88\AppData\Roaming\Python\Python37\site-packages\tornado\gen.py", line 735, in run

        value = future.result()


莫回无
浏览 111回答 3
3回答

青春有我

当 jupyter 在 Windows 上的依赖项出现问题时,您似乎已经安装了它。请参阅https://github.com/jupyterlab/jupyterlab/issues/7259。我遇到了同样的错误。它现在应该在 conda 上修复,所以如果你从 conda 卸载并重新安装 jupyterlab,它不应该再抛出那个错误了。

不负相思意

第 2 步命令: conda activate (location of your env folder)第三步命令: python -m ipykernel install --user适用于 Windows。

炎炎设计

此错误有时是由于之前创建的已删除环境造成的。对于 Windows 用户,在 cmd 中运行以下代码python -m ipykernel 安装 –user
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

Python