gpt4 book ai didi

python - JupyterHub JupyterLab - 导入错误 : cannot import name 'AsyncKernelManager' from 'jupyter_client.manager'

转载 作者:行者123 更新时间:2023-12-04 03:56:41 25 4
gpt4 key购买 nike

我一直在笔记本模式下的 k8s 下运行 JupyterHub,但现在想切换到 JupyterLab。当我第一次启动 JupyterLab 时,我被要求重建内核(失败)所以我宁愿不重建。下一页:

当我尝试启动 python3 内核时,在日志中(JS 控制台和容器后端)我得到:

ImportError: cannot import name 'AsyncKernelManager' from 'jupyter_client.manager'

如果我从 JupyterLab 中打开一个终端并执行

python -c "from jupyter_client import AsyncKernelManager"

没有问题。

到底如何进行?

PS 这里有一个公开的 github 票证 - 没有太多信息 https://github.com/jupyter/jupyter_client/issues/551

最佳答案

启动容器后,您是否更新了根 conda 环境中的任何内容?如果更新 python 版本(可能是由于从不同的库读取),我就会发生这种情况。

关于python - JupyterHub JupyterLab - 导入错误 : cannot import name 'AsyncKernelManager' from 'jupyter_client.manager' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63754426/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com