What does the error message about pip –use-feature=2020-resolver mean?

Question:

I’m trying to install jupyter on Ubuntu 16.04.6 x64 on DigitalOcean droplet. It is giving me the following error message, and I can’t understand what this means.

ERROR: After October 2020 you may experience errors when installing or
updating packages. This is because pip will change the way that it
resolves dependency conflicts.

We recommend you use –use-feature=2020-resolver to test your packages
with the new resolver before it becomes the default.

jsonschema 3.2.0 requires six>=1.11.0, but you’ll have six 1.10.0 which is incompatible

Any help would be greatly appreciated!

Asked By: Yongjun Lee

||

Answers:

According to this announcement, pip will introduce a new dependency resolver in October 2020, which will be more robust but might break some existing setups. Therefore they are suggesting users to try running their pip install scripts at least once (in dev mode) with this option: --use-feature=2020-resolver
to anticipate any potential issue before the new resolver becomes the default in October 2020 with pip version 20.3.

On behalf of the PyPA, I am pleased to announce that we have just released pip 20.2, a new version of pip. You can install it by running python -m pip install –upgrade pip.

The highlights for this release are:

  • The beta of the next-generation dependency resolver is available
  • Faster installations from wheel files
  • Improved handling of wheels containing non-ASCII file contents
  • Faster pip list using parallelized network operations
  • Installed packages now contain metadata about whether they were directly
    requested by the user (PEP 376’s REQUESTED file)

The new dependency resolver is off by default because it is not yet ready for everyday use.

The new dependency resolver is significantly stricter and more consistent when it receives incompatible instructions, and reduces support for certain kinds of constraints files, so some workarounds and workflows may break. Please test it with the –use-feature=2020-resolver flag. Please see our guide on how to test and migrate, and how to report issues . We are preparing to change the default dependency resolution behavior and make the new resolver the default in pip 20.3 (in October 2020).

Answered By: FurryMachine

First check if your pip is updated:

python -m pip install --upgrade pip

and then use:

pip install example --use-feature=2020-resolver

It worked for me.

Answered By: naveganteJP
Categories: questions Tags: , , , ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.