I'm trying to update conda
, as per its own suggestion, but I'm getting this:
% conda update -n base -c conda-forge conda
Channels:
- conda-forge
- defaults
Platform: osx-arm64
Collecting package metadata (repodata.json): done
Solving environment: done
==> WARNING: A newer version of conda exists. <==
current version: 23.11.0
latest version: 24.1.0
Please update conda by running
$ conda update -n base -c conda-forge conda
# All requested packages already installed.
Does anyone know why this isn't working?
Conda will be forced to explain itself if you ask more specifically:
conda install -n base 'conda>=24.1.0'
Note: Personally, I might use mamba
here because it has historically been better at conflict reporting.
Otherwise, contrary to user expectations, the conda update
command does not tell Conda to install the absolute latest version of a package. Rather, it tells Conda to install the latest version that is compatible with the other environment constraints.
Most likely there are underlying conflicts with some other installed packages which prevents updating the conda
package. This could be because the user has either explicitly (using conda-meta/pinned
) or implicitly (by request a specific version in conda install
) pinned some other package to a version that is not compatible with updating conda
. Or, there could be a package that has a shared dependency with conda
and that package has not been built against the version of the dependency that the newer Conda was built with.