Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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!

like image 966
Yongjun Lee Avatar asked Aug 06 '20 05:08

Yongjun Lee


People also ask

How do I run a Jupyter Notebook in Linux terminal?

To be able to run jupyter notebook from terminal, you need to make sure that ~/.local/bin is in your path. Do this by running export PATH=$PATH:~/.local/bin for your current session, or adding that line to the end of ~/.bashrc to make your changes last for future sessions (e.g. by using nano ~/.bashrc ).

What is Pip 2020-resolver and why is it bad?

This is because pip will change the way that it resolves dependency conflicts. pip 2020-resolver 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.

What's new in the new dependency resolver?

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.

How do I export a Jupyter Notebook path?

Open a terminal window using Ctrl+Alt+T. Run the command gedit ~/.profile. Add the line. export PATH=$PATH:/.local/bin/jupyter-notebook. to the bottom and save.


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

like image 152
FurryMachine Avatar answered Oct 13 '22 22:10

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.

like image 27
naveganteJP Avatar answered Oct 13 '22 23:10

naveganteJP