Which is the correct command to update all anaconda python packages? -




i using python anaconda. confused correct command update anaconda packages latest version. there seems 2 commands can used;

$ conda update --all 

or

$ conda update anaconda 

after running latter, anaconda upgraded ver4.4. subsequently, run former asked if wanted downgrade packages. confused me. correct command use?

the anaconda package "meta"-package, means doesn't contain packages itself, merely sets specific version of number of packages continuum include "anaconda distribution". therefore, when type

conda update anaconda 

you telling conda update recent version of anaconda package, , install dependencies specific versions specified in anaconda package. has advantage continuum have tested packages , making assurance there won't conflicts.

when type

conda update --all 

conda uses internal algorithm try , resolve versions of dependencies. i'm not sure of details, may result in packages being upgraded, others being downgraded because package have installed requires downgraded version of dependency. particularly number of packages installed anaconda meta-package, conflicts sure happen, , conda doing best resolve those.

as use, i'd if started anaconda, keep going anaconda avoid version conflicts (i.e., conda update anaconda). however, if have fresh environment or you're using miniconda don't have anaconda meta-package installed, conda update --all better choice. mileage may vary.





wiki

Comments

Popular posts from this blog

Asterisk AGI Python Script to Dialplan does not work -

python - Read npy file directly from S3 StreamingBody -

kotlin - Out-projected type in generic interface prohibits the use of metod with generic parameter -