TL;DR: dependency conflicts: Updating one requires (by its requirements) to downgrade another

You are right:

conda update --all

is actually the way to go1. Conda always tries to upgrade the packages to the newest version in the series (say Python 2.x or 3.x).

Dependency conflicts

But it is possible that there are dependency conflicts (which prevent a further upgrade). Conda usually warns very explicitly if they occur.

e.g. X requires Y <5.0, so Y will never be >= 5.0

That's why you 'cannot' upgrade them all.

Resolving

Update 1: since a while, mamba has proven to be an extremely powerful drop-in replacement for conda in terms of dependency resolution and (IMH experience) finds solutions to problems where conda fails. A way to invoke it without installing mamba is via the --solver=libmamba flag (requires conda-libmamba-solver), as pointed out by matteo in the comments.

To add: maybe it could work but a newer version of X working with Y > 5.0 is not available in conda. It is possible to install with pip, since more packages are available in pip. But be aware that pip also installs packages if dependency conflicts exist and that it usually breaks your conda environment in the sense that you cannot reliably install with conda anymore. If you do that, do it as a last resort and after all packages have been installed with conda. It's rather a hack.

A safe way you can try is to add conda-forge as a channel when upgrading (add -c conda-forge as a flag) or any other channel you find that contains your package if you really need this new version. This way conda does also search in this places for available packages.

Considering your update: You can upgrade them each separately, but doing so will not only include an upgrade but also a downgrade of another package as well. Say, to add to the example above:

X > 2.0 requires Y < 5.0, X < 2.0 requires Y > 5.0

So upgrading Y > 5.0 implies downgrading X to < 2.0 and vice versa.

(this is a pedagogical example, of course, but it's the same in reality, usually just with more complicated dependencies and sub-dependencies)

So you still cannot upgrade them all by doing the upgrades separately; the dependencies are just not satisfiable so earlier or later, an upgrade will downgrade an already upgraded package again. Or break the compatibility of the packages (which you usually don't want!), which is only possible by explicitly invoking an ignore-dependencies and force-command. But that is only to hack your way around issues, definitely not the normal-user case!


1 If you actually want to update the packages of your installation, which you usually don't. The command run in the base environment will update the packages in this, but usually you should work with virtual environments (conda create -n myenv and then conda activate myenv). Executing conda update --all inside such an environment will update the packages inside this environment. However, since the base environment is also an environment, the answer applies to both cases in the same way.

Answer from jonas-eschle on Stack Overflow
Top answer
1 of 7
428

TL;DR: dependency conflicts: Updating one requires (by its requirements) to downgrade another

You are right:

conda update --all

is actually the way to go1. Conda always tries to upgrade the packages to the newest version in the series (say Python 2.x or 3.x).

Dependency conflicts

But it is possible that there are dependency conflicts (which prevent a further upgrade). Conda usually warns very explicitly if they occur.

e.g. X requires Y <5.0, so Y will never be >= 5.0

That's why you 'cannot' upgrade them all.

Resolving

Update 1: since a while, mamba has proven to be an extremely powerful drop-in replacement for conda in terms of dependency resolution and (IMH experience) finds solutions to problems where conda fails. A way to invoke it without installing mamba is via the --solver=libmamba flag (requires conda-libmamba-solver), as pointed out by matteo in the comments.

To add: maybe it could work but a newer version of X working with Y > 5.0 is not available in conda. It is possible to install with pip, since more packages are available in pip. But be aware that pip also installs packages if dependency conflicts exist and that it usually breaks your conda environment in the sense that you cannot reliably install with conda anymore. If you do that, do it as a last resort and after all packages have been installed with conda. It's rather a hack.

A safe way you can try is to add conda-forge as a channel when upgrading (add -c conda-forge as a flag) or any other channel you find that contains your package if you really need this new version. This way conda does also search in this places for available packages.

Considering your update: You can upgrade them each separately, but doing so will not only include an upgrade but also a downgrade of another package as well. Say, to add to the example above:

X > 2.0 requires Y < 5.0, X < 2.0 requires Y > 5.0

So upgrading Y > 5.0 implies downgrading X to < 2.0 and vice versa.

(this is a pedagogical example, of course, but it's the same in reality, usually just with more complicated dependencies and sub-dependencies)

So you still cannot upgrade them all by doing the upgrades separately; the dependencies are just not satisfiable so earlier or later, an upgrade will downgrade an already upgraded package again. Or break the compatibility of the packages (which you usually don't want!), which is only possible by explicitly invoking an ignore-dependencies and force-command. But that is only to hack your way around issues, definitely not the normal-user case!


1 If you actually want to update the packages of your installation, which you usually don't. The command run in the base environment will update the packages in this, but usually you should work with virtual environments (conda create -n myenv and then conda activate myenv). Executing conda update --all inside such an environment will update the packages inside this environment. However, since the base environment is also an environment, the answer applies to both cases in the same way.

2 of 7
28

To answer more precisely to the question:

conda (which is conda for miniconda as for Anaconda) updates all but ONLY within a specific version of a package -> major and minor. That's the paradigm.

In the documentation you will find "NOTE: Conda updates to the highest version in its series, so Python 2.7 updates to the highest available in the 2.x series and 3.6 updates to the highest available in the 3.x series." doc

If Wang does not gives a reproducible example, one can only assist. e.g. is it really the virtual environment he wants to update or could Wang get what he/she wants with

conda update -n ENVIRONMENT --all

*PLEASE read the docs before executing "update --all"! This does not lead to an update of all packages by nature. Because conda tries to resolve the relationship of dependencies between all packages in your environment, this can lead to DOWNGRADED packages without warnings.


If you only want to update almost all, you can create a pin file

echo "conda ==4.0.0" >> ~/miniconda3/envs/py35/conda-meta/pinned
echo "numpy 1.7.*" >> ~/miniconda3/envs/py35/conda-meta/pinned

before running the update. conda issues not pinned

If later on you want to ignore the file in your env for an update, you can do:

conda update --all --no-pin

You should not do update --all. If you need it nevertheless you are saver to test this in a cloned environment.

First step should always be to backup your current specification:

conda list -n py35 --explicit 

(but even so there is not always a link to the source available - like for jupyterlab extensions)

Next you can clone and update:

conda create -n py356 --clone py35

conda activate py356
conda config --set pip_interop_enabled True # for conda>=4.6
conda update --all

conda config


update:

Currently I would use mamba (or micromamba) as conda pkg-manager replacement


update:

Because the idea of conda is nice but it is not working out very well for complex environments I personally prefer the combination of nix-shell (or lorri) and poetry [as superior pip/conda .-)] (intro poetry2nix).

Alternatively you can use nix and mach-nix (where you only need you requirements file. It resolves and builds environments best.


On Linux / macOS you could use nix like

nix-env -iA nixpkgs.python37

to enter an environment that has e.g. in this case Python3.7 (for sure you can change the version)

or as a very good Python (advanced) environment you can use mach-nix (with nix) like

mach-nix env ./env -r requirements.txt 

(which even supports conda [but currently in beta])

or via api like

nix-shell -p nixFlakes --run "nix run github:davhau/mach-nix#with.ipython.pandas.seaborn.bokeh.scikit-learn "

Finally if you really need to work with packages that are not compatible due to its dependencies, it is possible with technologies like NixOS/nix-pkgs.

🌐
Anaconda
anaconda.com › docs › getting-started › working-with-conda › packages › update-packages
Updating conda packages - Anaconda
The sections below explain how to update individual packages, multiple packages at once, or entire environments. You can also run conda update --help to see a list of all available update command options.
Discussions

conda update anaconda vs. conda update --all
Hi, when I try conda update anaconda, it gives me the following: The following packages will be downloaded: package build hdf5-1.8.15.1 1 1.5 MB llvmlite-0.5.0 py34_0 5.9 MB bcolz-0.9.0 np19py34_0 ... More on github.com
🌐 github.com
21
July 6, 2015
Just installed miniconda, updating all packages takes ages, am I doing something wrong?
There are a lot of packages. It takes a while or just don't update everything. The software is just doing exactly what you asked it to do. More on reddit.com
🌐 r/Python
4
1
October 17, 2014
How do i update Anaconda to the latest version ?
This also helps “update” the packages - but it doesn’t downgrade anaconda ( unlike the other 2) and instead downgrades my Python 3.8.10 to Python 3.7 - along with a lot of my other packages More on reddit.com
🌐 r/IPython
5
2
July 27, 2021
conda doesn't update Python itself?
Conda doesn't update python because lots of projects need a particular version of python. Conda wouldn't have made it very far if it auto updated every project to 3.10.... I'm pretty sure none of my projects are compatible with 3.10 because of the libraries I use, so it would break everything. You should explicitly create a new environment if you need a different version of python. More on reddit.com
🌐 r/learnpython
5
1
February 13, 2022
🌐
Conda
docs.conda.io › projects › conda › en › stable › commands › update.html
conda update — conda 26.3.2 documentation
Update 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.
🌐
Anaconda
anaconda.com › home › blog › keeping anaconda up to date
Anaconda | Keeping Anaconda Up To Date
October 1, 2025 - conda create -n myenv --clone root conda update -n myenv --all
🌐
GitHub
github.com › conda › conda › issues › 1414
conda update anaconda vs. conda update --all · Issue #1414 · conda/conda
July 6, 2015 - 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?
Author   sensharma
🌐
Cleancode
cleancode.studio › data-science › conda › conda-update-package
Clean Code Studio - Conda Update Package
The conda update command is used to update a package or packages in your conda environment. To update a package, you can use the following syntax: ... To update all packages in your environment, you can use the conda update --all command.
Find elsewhere
🌐
Conda
docs.conda.io › docs › using › pkgs.html
Managing packages — conda 26.3.3.dev42 documentation
Because the pinned specs are included with each conda install, subsequent conda update commands without --no-pin will revert NumPy back to the 1.7 series. To automatically add default packages to each new environment that you create: Open a terminal window and run: conda config --add create_default_packages PACKAGENAME1 PACKAGENAME2 · Now, you can create new environments and the default packages will be installed in all of them.
🌐
Conda
docs.conda.io › projects › conda › en › stable › user-guide › tasks › manage-pkgs.html
Managing packages — conda 26.3.2 documentation
Because the pinned specs are included with each conda install, subsequent conda update commands without --no-pin will revert NumPy back to the 1.7 series. To automatically add default packages to each new environment that you create: Open a terminal window and run: conda config --add create_default_packages PACKAGENAME1 PACKAGENAME2 · Now, you can create new environments and the default packages will be installed in all of them.
🌐
Saturn Cloud
saturncloud.io › blog › how-to-update-all-possible-packages-in-anaconda-a-guide
How to Update All Possible Packages in Anaconda: A Guide | Saturn Cloud Blog
January 9, 2024 - This command will check for updates for all packages in the current environment. If updates are available, conda will list them and ask for your confirmation to proceed.
🌐
Claridge-Chang Lab
claridgechang.net › blog › updating-anaconda
Updating Anaconda - Claridge-Chang Lab
The Anaconda distribution is a very convenient version of scientific Python that installs a lot of modules as well as a Launcher that offers three GUI apps: IPython Console, Spyder (a...
🌐
Reddit
reddit.com › r/python › just installed miniconda, updating all packages takes ages, am i doing something wrong?
r/Python on Reddit: Just installed miniconda, updating all packages takes ages, am I doing something wrong?
October 17, 2014 -

Hello r/python,

On my older apple laptop, I just wiped it to install OS X 10.10. When re-installing it, I decided to try mini-conda instead of Anaconda. The installation of mini-conda went fine, and I installed all the relevant python packages I wanted (scipy, numpy, matplotlib, ipython, pandas), and have left to go on my way.

So I was thinking more about it, and then I realized that when I had the Anaconda distribution installed, to update, I just used to run

conda update conda

conda update anaconda

Where the first line updated conda specifically, and the second command updated all the packages that were included in the python distribution.

So my question is, is there a miniconda equivalent to updating all packages, or am I stuck with

conda update --all

which takes all of eternity to run...

Thanks!

🌐
Fig
fig.io › manual › conda › update
conda update <package...> | Fig
Updates conda packages to the latest compatible version
🌐
Reddit
reddit.com › r/ipython › how do i update anaconda to the latest version ?
r/IPython on Reddit: How do i update Anaconda to the latest version ?
July 27, 2021 -

Sorry if this is not the correct place to ask - but how do i update my entire Anaconda distribution?

I don’t want to upgrade all my Anaconda packages … I just want to update my entire Anaconda distribution.

Running conda update —all says anaconda downgraded to custom_py38 - from prior experience i know this can/will break my environment ..😅

Running conda update anaconda -d gives the same custom thing - but it updates leaser packages .

🌐
Reddit
reddit.com › r/learnpython › conda doesn't update python itself?
r/learnpython on Reddit: conda doesn't update Python itself?
February 13, 2022 -

I've been using Anaconda for a few years for hobby stuff. They only admin I do is 'conda update --all' every few weeks. I assumed that updated everything, but just noticed that I'm on Python 3.6.13. That coincides with when I got this laptop and installed Anaconda, so it's been updating packages but not Python itself.

  1. How do you include Python in the update cycle? Manually by doing 'conda update python' at the same time as 'conda update --all', or can conda do both in a single command?

  2. Is there anything else that conda doesn't update that the average user should know about?

I see that I should do 'conda install python==3.10' but will probably reinstall from scratch to avoid problems/stress.

🌐
Anaconda.org
anaconda.org › anaconda › python
python - anaconda | Anaconda.org
1 week ago - $conda install anaconda::python · Monthly · Downloads Updates · Version · 3.14.4 · 3.14.3 · 3.14.2 · 3.14.1 · 3.14.0 · 5 / 8 versions selected · Downloads (Last 6 months): 0 · Python is a widely used high-level, general-purpose, interpreted, dynamic programming language. Its design philosophy emphasizes code readability, and its syntax allows programmers to express concepts in fewer lines of code than would be possible in languages such as C++ or Java.
🌐
Super User
superuser.com › questions › 1456970 › conda-update-all-wants-to-remove-all-packages
python - Conda update all wants to remove all packages - Super User
July 7, 2019 - C:\WINDOWS\system32>conda update --all Collecting package metadata (current_repodata.json): done Solving environment: done ## Package Plan ## environment location: C:\Users\marek\Anaconda3 The following packages will be REMOVED: _anaconda_d...
🌐
conda-forge
conda-forge.org › a brief introduction
A brief introduction | conda-forge | community-driven packaging for conda
1 month ago - Enter the channel url: https://conda.anaconda.org/conda-forge/ Press the Enter key on your keyboard. Click the Update channels button. From now on, whenever the package filter is set to All on the Environments tab, all conda-forge packages will be displayed.
🌐
Quora
quora.com › What-is-the-difference-between-these-two-Anaconda-commands-for-Python-conda-update-all-versus-conda-update-conda
What is the difference between these two Anaconda commands for Python, 'conda update all' versus 'conda update conda'? - Quora
Answer (1 of 2): conda is a utility tool that manages packages. But conda itself is also a package. So, doing [code ]conda update conda[/code] will check if the Anaconda server has an update for the “conda” package and then update that single package and its dependencies, if required, but ...
🌐
Conda
docs.conda.io › projects › conda › en › latest › user-guide › tasks › manage-environments.html
Managing environments — conda 26.3.3.dev50 documentation
With conda, you can create, export, list, remove, and update environments that have different versions of Python and/or packages installed in them. Switching or moving between environments is called activating the environment. You can also share an environment file. There are many options available for the commands described on this page. For a detailed reference on all ...