jupyter 报错 raise RuntimeError(‘This event loop is already running‘)

Posted _刘文凯_

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了jupyter 报错 raise RuntimeError(‘This event loop is already running‘)相关的知识,希望对你有一定的参考价值。

使用anaconda时jupyter报错: raise RuntimeError(‘This event loop is already running’); 这是由于ipykernel冲突导致的

解决办法:
建议在base环境中安装 ipykernel

conda install ipykernel

把报错环境中的ipykernel、jupyter都卸载了

conda activate py37
conda uninstall ipykernel
conda uninstall jupyter
然后安装最新版的
pip install jupyter
pip install ipykernel==5.5.6

在base里启动jupyter

conda activate base
jupyter notebook

在选择kernel的时候选择py37的就行了

以上是关于jupyter 报错 raise RuntimeError(‘This event loop is already running‘)的主要内容,如果未能解决你的问题,请参考以下文章

raise

报错: raise ImproperlyConfigured('mysqlclient 1.3.13 or newer is required; you have %s.' % Dat

anaconda重装jupyter notebook后启动jupyter报错的问题

解决启动jupyter报错:加载插件 jupyter_nbextensions_configurator 失败(图文并茂版)

解决启动jupyter报错:加载插件 jupyter_nbextensions_configurator 失败(图文并茂版)

jpype测试报错,找不到类raise _RUNTIMEEXCEPTION.PYEXC("Class %s not found" % name)