1

我已经安装Anaconda3-2021.11在我的 Linux 服务器(没有 Internet 连接)上。我正在尝试安装 Jupyter Notebook nbextensions 以便使用Table of Contents扩展。但是,我无法使用conda install.

我运行的命令是

conda install -c conda-forge jupyter_contrib_nbextensions-0.5.1-pyhd8ed1ab_2.tar.bz2

但是,我收到了错误消息

LinkError: post-link script failed for package <unknown>::jupyter_contrib_nbextensions-0.5.1-pyhd8ed1ab_2
location of failed script: /root/anaconda3/bin/.jupyter_contrib_nbextensions-post-link.sh
==> script messages <==
Traceback (most recent call last):
  File "/root/anaconda3/bin/jupyter-contrib-nbextension", line 6, in <module>
    from jupyter_contrib_nbextensions.application import main
  File "/root/anaconda3/lib/python3.9/site-packages/jupyter_contrib_nbextensions/__init__.py", line 5, in <module>
    import jupyter_nbextensions_configurator
ModuleNotFoundError: No module named 'jupyter_nbextensions_configurator'

我也尝试通过jupyter_nbextensions_configurator安装

conda install -c conda-forge jupyter_nbextensions_configurator-0.4.1-py37h89c1867_2.tar.bz2

我收到了类似的错误消息:

LinkError: post-link script failed for package <unknown>::jupyter_nbextensions_configurator-0.4.1-py37h89c1867_2
location of failed script: /root/anaconda3/bin/.jupyter_nbextensions_configurator-post-link.sh
==> script messages <==
Traceback (most recent call last):
  File "/root/anaconda3/bin/jupyter-nbextensions_configurator", line 7, in <module>
    from jupyter_nbextensions_configurator.application import main
ModuleNotFoundError: No module named 'jupyter_nbextensions_configurator'

如何安装 nbextensions?

4

0 回答 0