Anaconda Maintenance

From PDP/Grid Wiki
Revision as of 13:43, 19 November 2015 by Templon@nikhef.nl (talk | contribs) (Created page with "Updating Anaconda environments and packages is not always obvious. Here are some guidelines. conda update anaconda updates the full anaconda installation to the main tree....")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Updating Anaconda environments and packages is not always obvious. Here are some guidelines.

conda update anaconda

updates the full anaconda installation to the main tree. This appears to update the packages itself, but does not update which packages are linked into the various conda environments.

conda update numpy=1.9 --all

will carry out the all updates, with the caveat that the "numpy" package is held at version 1.9. The dependencies seem to be handled correctly, ie if numpy 1.10 is also available, other packages depending on numpy will not be updated to a newer version linked against 1.10.

The above commands operate on the default anaconda environment. To do the same with other environments, try e.g.

conda update -n py27root5 root=5 numpy=1.9 --all

which will update packages in the py27root5 environment, keeping root at version 5 and numpy at version 1.9, plus managing their dependencies correctly within the environment.