jupyter contrib nbextension install --user pkg_resources.DistributionNotFound webcolors 和 format-nongpl 错误

mrC*_*ost 1 command-line anaconda jupyter jupyter-notebook anaconda3

首先我安装了jupyter

\n

conda install jupyter

\n

然后我通过 conda-forge 通道安装了 nbextensions

\n

conda install -c conda-forge jupyter_contrib_nbextensions

\n

但是当我输入下一个命令时:

\n

jupyter contrib nbextension install --user

\n

出现了错误列表,并且它不\xc2\xb4t运行,最重要的错误是:

\n

pkg_resources.DistributionNotFound: The 'webcolors>=1.11; extra == "format-nongpl"' distribution was not found and is required by jsonschema

\n

Python版本:3.10.9

\n

我尝试安装特定版本的 jupyter 和 nbextensions 但无论如何它都不起作用。

\n

mrC*_*ost 5

我得到了使其起作用的线索,在安装 jupyter 和 jupyter contrib nbextension 时,发生了一些内部问题,并且它没有\xc2\xb4t 安装 nbextension 进行 jupyter 安装所需的一些软件包。

\n

所以我必须安装它们:

\n

conda install -c conda-forge jsonschema-with-format-nongpl

\n

conda install -c conda-forge webcolors

\n

这样做并再次输入该命令,效果很好。

\n