gpt4 book ai didi

jupyter-notebook - 由于 IPython.utils.warn,从 IPython 5.x 升级到 6.0 导致崩溃

转载 作者:行者123 更新时间:2023-12-05 00:51:29 25 4
gpt4 key购买 nike

我最近通过 condo update ipython 从 IPython 5.x 升级到 6.0 .但是,我在内核中崩溃了:

Traceback (most recent call last):
File "//anaconda/lib/python3.5/runpy.py", line 170, in _run_module_as_main
"__main__", mod_spec)
File "//anaconda/lib/python3.5/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "//anaconda/lib/python3.5/site-packages/ipykernel/__main__.py", line 2, in <module>
from ipykernel import kernelapp as app
File "//anaconda/lib/python3.5/site-packages/ipykernel/kernelapp.py", line 37, in <module>
from .ipkernel import IPythonKernel
File "//anaconda/lib/python3.5/site-packages/ipykernel/ipkernel.py", line 15, in <module>
from .zmqshell import ZMQInteractiveShell
File "//anaconda/lib/python3.5/site-packages/ipykernel/zmqshell.py", line 46, in <module>
from IPython.utils.warn import error
ImportError: No module named 'IPython.utils.warn'
[I 18:35:28.928 NotebookApp] KernelRestarter: restarting kernel (1/5)

显然,问题在于 IPython.utils.warn已弃用和 has now been removed从 6.0.0 版开始。我怎样才能解决这个问题?

注意:以下均无效:
pip install --upgrade ipython
pip install --upgrade jupyter
pip install --upgrade --no-deps --force-reinstall ipython
pip install --upgrade --no-deps --force-reinstall jupyter

最佳答案

我遇到过同样的问题。以下行为我解决了这个问题:

conda update ipykernel

我不知道为什么这不是自动完成的。

关于jupyter-notebook - 由于 IPython.utils.warn,从 IPython 5.x 升级到 6.0 导致崩溃,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44199562/

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