Search code examples
jupyter-notebookcommand-lineanacondajupyteranaconda3

jupyter contrib nbextension install --user pkg_resources.DistributionNotFound webcolors and format-nongpl error


First of all i installed jupyter

conda install jupyter

Then i installed nbextensions with the channel conda-forge

conda install -c conda-forge jupyter_contrib_nbextensions

But when i entered the next command:

jupyter contrib nbextension install --user

Appeared a list of errors and it doesn´t run, the most important error was:

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

Python version: 3.10.9

I tried to install specific versions of jupyter and nbextensions but it doesn´t work anyway.


Solution

  • I got the clue to make that works, in the installation of jupyter and jupyter contrib nbextension, it have happened some internal issue and it didn´t install some packages that nbextension needs to do the jupyter installation.

    So i have had to install them:

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

    conda install -c conda-forge webcolors

    Doing that and entering again that command, worked well.