繁体   English   中英

Jupyter IPython - 运行时错误:此事件循环已在运行

[英]Jupyter IPython - RuntimeError: This event loop is already running

没有特别的原因,我在启动 Jupyter IPython 时遇到了 « RuntimeError: This event loop is already running » 。 我被卡住了,无法运行任何 IPython Notebook。 请注意,我没有使用 Anaconda。

可能是在更新了 Python 机器学习生态系统的一个库(Scipy、NumPy、matplotlib、scikit-learn、pandas、Keras 等)之后,但我不记得是哪个库了。

我试图升级通常的嫌疑人,龙卷风和 ipykernel,但没有成功。 此外,我没有在自己的代码中使用任何像 asyncio 这样花哨的东西。

在尝试了很多事情并且可能使情况变得更糟之后,我终于解决了问题。

1)卸载IPython

sudo pip3 uninstall -y jupyter jupyter_core jupyter-client jupyter-console notebook qtconsole nbconvert nbformat

2) 重新安装新的 Jupyterlab

sudo pip3 install jupyterlab

等等!

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM