ModuleNotFoundError: No module named notebook.base
时间: 2023-10-06 16:05:57 浏览: 785
ModuleNotFoundError: No module named 'notebook.base'错误提示表明在安装jupyter_contrib_nbextensions时缺少notebook模块。解决这个问题的方法是先激活你的运行代码环境,然后使用pip命令安装jupyter。具体步骤如下:
1. 打开终端(Windows用户可以按下Win+R,然后输入“cmd”并回车)。
2. 激活你的运行代码环境,使用命令“conda activate 你的环境名”。
3. 进入你的环境之后,输入“python -m pip install jupyter”并回车,安装jupyter。
4. 当最下方出现安装成功的提示后,输入“ipython notebook”并回车,打开jupyter notebook界面。
如果你想在notebook界面上安装jupyter_contrib_nbextensions,你可以尝试以下方法:
1. 打开终端,进入你的运行代码环境。
2. 输入命令“jupyter contrib nbextension install --user”并回车,安装jupyter_contrib_nbextensions。
3. 输入命令“pip install jupyter_nbextensions_configurator”并回车,安装jupyter_nbextensions_configurator。
如果在执行第二步时提示报错,可能是因为你没有正确安装jupyter或者没有正确激活环境。请确保按照上述步骤正确执行,并保证你的环境中已经安装了jupyter。
阅读全文
相关推荐


















