Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Bulk package updates using Conda

Is there a way (using conda update) that I can list outdated packages and select or bulk update (compatible) packages in Anaconda?

It doesn't make much sense updating the packages individually as there are hundreds of them.

like image 250
Afloz Avatar asked Jul 25 '14 15:07

Afloz


People also ask

Does conda update pip packages?

No, conda update and conda install don't update packages installed with pip (or install them using pip ). These conda commands only check your "default" anaconda-channels or the ones specified with -c , they ignore everything else.

What does conda update conda do?

Updates conda packages to the latest compatible version. This command accepts a list of package names and updates them to the latest versions that are compatible with all other packages in the environment. Conda attempts to install the newest versions of the requested packages.

Does conda update all update Python?

The conda update –all will upgrade everything. This updates all packages in the current environment to the latest version. In doing so, it drops all the version constraints from history and tries to make everything as new as possible. Anaconda2 includes Python 2.7, and Anaconda3 includes Python 3.7.


1 Answers

You want conda update --all.

conda search --outdated will show outdated packages, and conda update --all will update them (note that the latter will not update you from Python 2 to Python 3, but the former will show Python as being outdated if you do use Python 2).

like image 133
asmeurer Avatar answered Sep 16 '22 23:09

asmeurer