Posted in Python onApril 23, 2020
错误日志
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 "<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'
分析原因
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库就是小编分享给大家的全部内容了,希望能给大家一个参考,也希望大家多多支持三水点靠木。
Jupyter安装nbextensions,启动提示没有nbextensions库
- Author -
送人亲声明:登载此文出于传递更多信息之目的,并不意味着赞同其观点或证实其描述。
Reply on: @reply_date@
@reply_contents@