How to resolve inconsistent package warnings in conda?

13,441

Run:

conda install anaconda

It may solve the problem.

If that doesn't work, run conda install package_name for the inconsistent packages to let conda try to restore consistency.

Else, run conda update --all

Share:
13,441
shiv_90
Author by

shiv_90

#SOreadytohelp

Updated on July 19, 2022

Comments

  • shiv_90
    shiv_90 almost 2 years

    Newer versions of Conda provide the user with more detailed information about inconsistent packages casuing conflict with the environment. One such package in my conda env is the _nb_ext_conf which according to anaconda cloud, is the latest 0.4.0 installed in my system and even then I'm receiving this warning when trying to install/update a module:

    The environment is inconsistent, please check the package plan carefully
    The following packages are causing inconsistency:
     - defaults/osx-64::_nb_ext_conf==0.4.0=py36_1
    

    This package cannot be removed, since its required by jupyterlab as well as notebook. I'm not sure if it's causing serious conflict since I haven't yet experienced anything getting broken, but I would still want to resolve this inconsistency. Is there a way I could fix it? I searched for similar questions in conda's issues section in github, but did not come across anything similar.

  • shiv_90
    shiv_90 almost 5 years
    That actually worked. Strange the latest _nb_ext_conf still needed to be 'updated' to resolve the inconsistency.
  • Gonçalo Peres
    Gonçalo Peres over 4 years
    Try the above and then conda update --all and let me know if it solved your problem.
  • wei ren
    wei ren almost 4 years
    conda install anaconda and conda update --all worked for me