Discussion:
[conda] update or install in one command?
Jacob Vanderplas
2018-05-15 21:28:44 UTC
Permalink
Hi all,
Is there any single conda command that will update a package if it exists,
or install the package if it doesn't?

I'm thinking of a conda equivalent to ``pip install -U package``

Having such a command would simplify installation instructions in
situations where the user might have an older version of the package
already around.

I understand that ``conda install`` followed by ``conda update`` would work
for all users, but in my experience every extra step in installation
instructions roughly doubles the number of users who will contact the
mailing list with installation issues. A single install + update command
like the one pip provides would be very useful.

Thanks,
Jake

Jake VanderPlas
Senior Data Science Fellow
Director of Open Software
University of Washington eScience Institute
--
You received this message because you are subscribed to the Google Groups "conda - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to conda+***@continuum.io.
To post to this group, send email to ***@continuum.io.
Visit this group at https://groups.google.com/a/continuum.io/group/conda/.
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/conda/CACpqBg0k2TC9ZHZ3wNth39ym9bBoUp_-Gn8g9CN7rmE8fN%2BQHg%40mail.gmail.com.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.
Ariel Balter
2018-05-15 22:29:56 UTC
Permalink
In the mean time,

conda update --all -y && conda install XXXX -y

You could make an alias.
Post by Jacob Vanderplas
Hi all,
Is there any single conda command that will update a package if it exists,
or install the package if it doesn't?
I'm thinking of a conda equivalent to ``pip install -U package``
Having such a command would simplify installation instructions in
situations where the user might have an older version of the package
already around.
I understand that ``conda install`` followed by ``conda update`` would
work for all users, but in my experience every extra step in installation
instructions roughly doubles the number of users who will contact the
mailing list with installation issues. A single install + update command
like the one pip provides would be very useful.
Thanks,
Jake
Jake VanderPlas
Senior Data Science Fellow
Director of Open Software
University of Washington eScience Institute
--
You received this message because you are subscribed to the Google Groups "conda - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to conda+***@continuum.io.
To post to this group, send email to ***@continuum.io.
Visit this group at https://groups.google.com/a/continuum.io/group/conda/.
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/conda/bf0e238d-1853-4bac-8896-d81bd88f360f%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.
Loading...