Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why some packages are upgradable in Pip, not in Conda? [duplicate]

Tags:

python

pip

conda

I installed Anaconda under Windows 10. Everything is working fine. I also ran

conda upgrade --all

in a command prompt.

However, I noticed that when I type this in a command prompt:

pip list -o

I get (among other things)

astroid (1.4.7) - Latest: 1.4.8 [wheel]

This means package astroid is upgradable under pip. However, when I go to the Anaconda Navigator and look at the list of upgradable packages I do not see astroid in it. (I was not able to find a command line way of seeing which packages are upgradable under Conda).

Can someone explain why astroid appears as upgradable under Pip and not under Conda?

like image 397
Soldalma Avatar asked Mar 10 '23 12:03

Soldalma


1 Answers

The package list maintained by Anaconda is different than that of PyPI. It seems that astroid is not yet updated in the Anaconda package list.

You can either wait until the update is available in Anaconda, or you can temporarily use the version available via pip by uninstalling the conda version and installing the pip one:

conda remove astroid
pip install astroid

When Anaconda has updated, reverse those two commands to switch back:

pip uninstall astroid
conda install astroid
like image 162
Andy Avatar answered Apr 06 '23 06:04

Andy