【Jupyter】ModuleNotFoundError: No module named ‘notebook.base‘ && ‘stacklevel解决
·
解决:
- ModuleNotFoundError: No module named ‘notebook.base’ when installing nbextensions
- TypeError: warn() missing 1 required keyword-only argument: 'stacklevel
安装完jupyter后想安装插件实现代码自动补全,参考了如下文章[链接],执行图片中的代码重启jupyter失败,无法重启(https://www.cnblogs.com/djma/p/16310876.html)
重启时报错如下:
ModuleNotFoundError: No module named ‘notebook.base’ when installing nbextensions
解决方案:
pip install --upgrade notebook==6.4.12
继续报错:
TypeError: warn() missing 1 required keyword-only argument: 'stacklevel
解决:
pip uninstall traitlets
pip install traitlets==5.9.0
参考:某国外论坛
更多推荐
已为社区贡献1条内容
所有评论(0)