-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
conda update anaconda vs. conda update --all #1414
Comments
To keep everything consistent, use "conda update anaconda", as Anaconda is the consistent set of packages for each Anaconda release. |
Thank you. For my understanding, how is conda update --all different? And why does it seem to be in conflict with conda update anaconda? I would like to know if this is a temporary hitch or if there is some fundamental feature of the two commands. Thanks again. |
I may be wrong about the exact details, but the basic idea is that |
This is generally not true any more. |
@asmeurer I'm assuming that your comment is mostly targeted towards the "~forever" comment, but if in fact you mean that by some magic |
I mean both the forever part and the impossible part. Things generally work now. |
A few changes have been made in the past few months:
|
Guys, thanks a lot for your responses. Sorry I had disappeared for a bit. I have been taking the "conda update --all" approach for now. So far, so good. Doesn't take unbearably long and so far haven't faced any consistency issues. |
Sorry - another question - does "conda update --all" and "conda update anaconda" update all the pip installed packages as well (they do show up when I do a "conda list")? |
Hi!
I had been excessively using pip in between (e.g. whenever I was not able to find a package on anaconda, or sometimes when a package readme explicitly told me so). And I guess that had led to all those newer packages (that anaconda now wants to downgrade) - right? Can I for the future go for this strategy:
and if I really run into problems, then do
to downgrade everything to a consistent set? ... Perhaps ... is there a need / should I consider to have 2 parallel installations of anaconda, one with only TL;DR: I need to better understand the relation of conda and pip, I guess. How compatible are they? Thanks! |
Addendum: I have just tried to additionally upgrade via pip after
via
which however only results in a long list of
so I guess - upgrading via pip is like |
So what's the recommended way to keep things up to date? There is now an Anaconda Navigator that has all the packages listed under Environments. I can select "Upgradable" and I can upgrade them all from there, Is that the same as |
I thinks using |
Does |
Are |
|
What does 'superseded by a higher channel' mean ? I am doing conda update anaconda. |
This information (and the information I found everywhere else, e.g. here: https://stackoverflow.com/questions/45197777/how-do-i-update-anaconda) seems to be at least misleading; I read it that
Curiously enough, even when specifying specific version to conda install (e.g. So, after reading quite a bit about the "correct" procedure of how to update anaconda (conda update conda followed by conda update anaconda, or conda update --all, or conda install anaconda, ...); and playing around a lot with combinations of those commands; my current conclusion still is that the safest (and probably fastest) way to get a working, up-to-date Anaconda environment is to completely uninstall Anaconda, and then reinstalling everything... |
I agree @codeling , this has been one of the biggest headaches caused by There have been times I've had to resort to completely reinstalling Anaconda. However, lately I've had success with less drastic solutions, including:
As of now, I can confirm your observation that (with conda version 4.7.12) starting in an env with So forget what you've been told. The advice in Updating from older versions is misleading. Particularly, and I quote:
So in summary, there currently seems little use for As a side note, the notion that the custom anaconda package is lower in version ordering than any actual release is bizarre. This may be true on initial install, but does not seem to hold for updates. |
Thank you for pointing these out. We'll try to both improve the docs and make the behavior more defined and predictable.
It is counterintuitive, but I don't think bizarre is the right word. The ideal behavior is a way to keep to the "stable" track, and if the anaconda "custom" version were highest, then there would have to be some kind of hack to exclude the "custom" package if staying on the stable track. An unintuitive consequence of this is that any package you want to update later may conflict with the stable release (for example, packages that have very tight pinning such as boost or hdf5), which would prevent you from adding on packages that share dependencies with the metapackage. The locked-down metapackage really is primarily only good for use by itself, and because of its size and specificity, it very quickly grows the need to become flexible ("custom") in real use with packages outside of its set. Also, bear in mind that although it is absolutely true that the "custom" version is lower than any number version (see https://github.com/conda/conda/blob/master/conda/models/version.py#L47-L155 for how this works), it is also true that a So, regarding your statements:
This is a bug. We need to fix it. This should be the stable track route.
This is a docs problem.
Same as last one, docs need fix. |
Hi there, thank you for your contribution to Conda! This issue has been automatically locked since it has not had recent activity after it was closed. Please open a new issue if needed. |
Hi, when I try conda update anaconda, it gives me the following:
The following packages will be downloaded:
The following NEW packages will be INSTALLED:
The following packages will be UPDATED:
The following packages will be DOWNGRADED:
Proceed ([y]/n)? y
Whereas if I do conda update --all, it gives me:
The following packages will be downloaded:
The following packages will be UPDATED:
It seems conda update anaconda and conda install --all are trying to upgrade and downgrade the exact opposite set of packages. What is the reason for this behaviour? If I want to keep all packages "consistent" at the highest possible level, which of the commands is preferable? Its a strange behavious since I'd have expected both commands to be able to do this.
Thanks.
The text was updated successfully, but these errors were encountered: