安装Jupyter nbextensions错误

时间:2018-01-21 01:20:30

标签: python pip jupyter-notebook jupyter conda

我正在尝试为Jupyter笔记本安装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'})

1 个答案:

答案 0 :(得分:1)

我能够通过从5.3.1降级到Jupyter Notebook 5.2.1来解决它