gpt4 book ai didi

python - 安装 Jupyter nbextensions 错误

转载 作者:太空宇宙 更新时间:2023-11-03 14:13:02 24 4
gpt4 key购买 nike

我正在尝试为 Jupyter Notebooks 安装 nbextensions,但不断收到错误消息。我尝试重新安装 Anaconda3,但没有成功并更新 pip 和 conda。

C:\Windows\System32>jupyter contrib nbextension install --user
Traceback (most recent call last):
File "c:\users\kai\anaconda3\lib\runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "c:\users\kai\anaconda3\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "C:\Users\kai\Anaconda3\Scripts\jupyter-contrib.EXE\__main__.py", line 9, in <module>
File "c:\users\kai\anaconda3\lib\site-packages\jupyter_core\application.py", line 267, in launch_instance
return super(JupyterApp, cls).launch_instance(argv=argv, **kwargs)
File "c:\users\kai\anaconda3\lib\site-packages\traitlets\config\application.py", line 656, in launch_instance
app = cls.instance(**kwargs)
File "c:\users\kai\anaconda3\lib\site-packages\traitlets\config\configurable.py", line 412, in instance
inst = cls(*args, **kwargs)
File "c:\users\kai\anaconda3\lib\site-packages\jupyter_contrib_core\application.py", line 27, in __init__
self._refresh_subcommands()
File "c:\users\kai\anaconda3\lib\site-packages\jupyter_contrib_core\application.py", line 43, in _refresh_subcommands
get_subcommands_dict = entrypoint.load()
File "c:\users\kai\anaconda3\lib\site-packages\pkg_resources\__init__.py", line 2404, in load
self.require(*args, **kwargs)
File "c:\users\kai\anaconda3\lib\site-packages\pkg_resources\__init__.py", line 2427, in require
items = working_set.resolve(reqs, env, installer, extras=self.extras)
File "c:\users\kai\anaconda3\lib\site-packages\pkg_resources\__init__.py", line 872, in resolve
raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.ContextualVersionConflict: (jupyter-core 4.3.0 (c:\users\kai\anaconda3\lib\site-packages), Requirement.parse('jupyter_core>=4.4.0'), {'notebook'})

最佳答案

我能够通过从 5.3.1 降级到 Jupyter Notebook 5.2.1 来解决这个问题

关于python - 安装 Jupyter nbextensions 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48362777/

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