Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to resolve inconsistent package warnings in conda?

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.

like image 510
shiv_90 Avatar asked May 10 '19 07:05

shiv_90


People also ask

How does conda solve package conflict?

This can take several minutes. Press CTRL-C to abort Error Just create an env and activate that env and then do the install and your error will be solved. Here is commandline. To create env Use this command: conda create –name myenv Then do Activate env: conda activate myenv Now, Your error must be solved.

What does conda clean all do?

Remove index cache, lock files, unused cache packages, and tarballs. Remove index cache. Remove unused packages from writable package caches.


Video Answer


1 Answers

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

like image 53
Gonçalo Peres Avatar answered Oct 26 '22 11:10

Gonçalo Peres