what is --use-feature=2020-resolver? error message with jupyter installation on ubuntu

PythonUbuntuTerminalPipJupyter

Python Problem Overview


I'm trying to install jupyter on ubuntu 16.04.6 x64 on digital ocean 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 package
s. 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 res
olver 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!

Python Solutions


Solution 1 - Python

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).

Solution 2 - Python

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.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionYongjun LeeView Question on Stackoverflow
Solution 1 - PythonFurryMachineView Answer on Stackoverflow
Solution 2 - PythonnaveganteJPView Answer on Stackoverflow