4

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?

Aurora0001
  • 13,139
  • 5
  • 50
  • 53
Soldalma
  • 4,636
  • 3
  • 25
  • 38

2 Answers2

5

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
Community
  • 1
  • 1
Andy
  • 49,085
  • 60
  • 166
  • 233
  • In some posts on the web I saw that there are two pips, one from Anaconda and the "original" one (or something like that). If I just type `pip install astroid` like you suggested will it be the "right" pip? (Sorry if this is a bit confusing but I am a beginner) – Soldalma Dec 02 '16 at 18:53
  • @Soldalma `pip` should always refer to the correct executable for your Conda environment, so you should be fine to use that. – Aurora0001 Dec 03 '16 at 10:33
2

It looks like Anaconda hasn't updated astroid yet - their package list shows it as only available for v1.4.7 (select Python 3.5 in the top tab and Ctrl+F astroid, or look on this page). However, astroid have updated the PyPI repository where Pip fetches packages from, so v1.4.8 is available through Pip and not through Anaconda.

As for why the package hasn't been upgraded - I'm not quite sure. There's been plenty of time since the release and there's no explanation why they wouldn't upgrade, so I can't really tell. Installing via pip should be fine if you need the latest version, though.

Aurora0001
  • 13,139
  • 5
  • 50
  • 53
  • 1
    My guess is that an abstract syntax tree is not very important to the needs of the typical `Anaconda` user, so updating it to the latest version is lower priority. – juanpa.arrivillaga Dec 02 '16 at 18:22