栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > Python

Jupyter安装nbextensions,启动提示没有nbextensions库

Python 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

Jupyter安装nbextensions,启动提示没有nbextensions库

错误日志

ModuleNotFoundError: No module named 'jupyter_nbextensions_configurator'

 Traceback (most recent call last):
  File "/usr/local/Cellar/jupyterlab/2.0.1/libexec/lib/python3.7/site-packages/notebook/notebookapp.py", line 1670, in init_server_extensions
  mod = importlib.import_module(modulename)
  File "/usr/local/Cellar/jupyterlab/2.0.1/libexec/lib/python3.7/importlib/__init__.py", line 127, in import_module
  return _bootstrap._gcd_import(name[level:], package, level)
  File "", line 1006, in _gcd_import
  File "", line 983, in _find_and_load
  File "", line 965, in _find_and_load_unlocked
 ModuleNotFoundError: No module named 'jupyter_nbextensions_configurator'

分析原因

nbextensions已经安装成功,但是启动jupyter的时候,提示

"No module named 'jupyter_nbextensions_configurator"

而且notebook的首页也没有nbextensions标签。

网上搜索了很多文章,尝试过很多方法,甚至卸载jupyter重新安装也不行。

于是决定还是从错误日志入手,既然提示没有module,第一行也给了一个路径

/usr/local/Cellar/jupyterlab/2.0.1/libexec/lib/python3.7/site-packages/

反正死马当活马医,在这个路径下再安装jupyter_nbextensions_configurator试试

pip3 install --target=/usr/local/Cellar/jupyterlab/2.0.1/libexec/lib/python3.7/site-packages jupyter_contrib_nbextensions

结果还真解决了,启动的时候没有提示错误,标签也正常显示

以上这篇Jupyter安装nbextensions,启动提示没有nbextensions库就是小编分享给大家的全部内容了,希望能给大家一个参考,也希望大家多多支持考高分网。

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/30816.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号