欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

ModuleNotFoundError: No module named 'jupyter_nbextensions_configurator'

程序员文章站 2022-05-28 22:29:05
...
[W 12:56:21.617 NotebookApp] Error loading server extension jupyter_nbextensions_configurator
    Traceback (most recent call last):
      File "/admin/anaconda3/lib/python3.7/site-packages/notebook/notebookapp.py", line 1546, in init_server_extensions
        mod = importlib.import_module(modulename)
      File "/admin/anaconda3/lib/python3.7/importlib/__init__.py", line 127, in import_module
        return _bootstrap._gcd_import(name[level:], package, level)
      File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
      File "<frozen importlib._bootstrap>", line 983, in _find_and_load
      File "<frozen importlib._bootstrap>", line 965, in _find_and_load_unlocked
    ModuleNotFoundError: No module named 'jupyter_nbextensions_configurator'

当出现如上错误时,请先检查自己的 jupyter notebook 命令是否正确。

错误的命令 jupyter-notebook
正确的命令 jupyter notebook

如果还是不能解决的话,可以尝试下面的解决方案:

python -m pip install --user jupyter_contrib_nbextensions
jupyter contrib nbextension install --user --skip-running-check
python -m pip install --user jupyter_nbextensions_configurator
jupyter nbextensions_configurator enable --user

参考:
ImportError: No module named ‘jupyter_nbextensions_configurator’