anaconda metapackage is a version-locked collection of the packages included in an Anaconda Distribution installer. Each version of the metapackage corresponds to a specific installer release, so installing a metapackage version recreates the package set from that release. This makes the metapackage a tool for reproducibility: if your code behaves differently between releases of Anaconda Distribution, you can recreate the environment from a specific release to debug the difference.
To recreate the package set from a specific installer release, run the following command:
anaconda metapackage and update the environment that contains it. For more information, see Updating a metapackage environment.
The
anaconda metapackage was removed from Anaconda Distribution installers in February of 2023 and no longer appears in your base environment by default.Installing the metapackage
Installing theanaconda metapackage requires conda. If you do not have conda installed, find an install guide for your OS.
If you plan to install the anaconda metapackage, Anaconda recommends that you create an environment specifically for that metapackage first:
- Open (Terminal on macOS/Linux).
-
Create a new environment by running the following command:
-
(Optional) Search for metapackage versions available for install by running the following command:
-
Install the
anacondametapackage or specify a metapackage version by running one of the following commands:- Latest version
- Specific version
_anaconda_depends package instead of the anaconda metapackage:
_anaconda_depends package references the same packages as the metapackage but does not pin their versions, so you can freely install and update packages in the environment. Anaconda Distribution installers include _anaconda_depends in the base environment for this reason.
Updating a metapackage environment
If you have an environment containing theanaconda metapackage and need to update packages in that environment, you must first unpin the package versions in your environment. This is accomplished by installing the anaconda=custom version of the metapackage:
- Open (Terminal on macOS/Linux).
-
Open the environment containing the metapackage you want to update:
-
Install the custom version of the
anacondapackage using the following command: - Install or update packages as necessary. For more information on managing packages, see Managing packages in the conda documentation.