LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

conda-export

environment specification exporter

TLDR

Export current environment
$ conda export > [environment.yml]
copy
Export without builds
$ conda export --no-builds > [environment.yml]
copy
Export from history only
$ conda export --from-history > [environment.yml]
copy

SYNOPSIS

conda export [options]

DESCRIPTION

conda export outputs the current environment specification in YAML format by default. This can be used to recreate the environment on another system with conda env create -f environment.yml.conda export is the newer subcommand and supports multiple output formats via --format. The traditional conda env export remains supported and produces equivalent YAML.Use --from-history for more portable exports that omit transitive dependencies and platform-specific build strings.

PARAMETERS

-n, --name name

Name of environment to export. Defaults to the active environment.
-p, --prefix path
Full path to the environment to export (alternative to --name).
-f, --file file
Write output to a file. Format is auto-detected from the filename. Defaults to standard output.
--format format
Output format: yaml (default), json, explicit, or requirements.
--no-builds
Exclude build strings from the dependency list, making the file more portable.
--from-history
Only include packages explicitly requested, omitting transitive dependencies.
-c, --channel channel
Additional channel to include in the export.
--override-channels
Do not include channels from .condarc.
--ignore-channels
Do not prepend channel names to package specs.
--json
Report output as JSON, suitable for programmatic use.

CONFIGURATION

~/.condarc

User-level conda configuration for channels, package settings, and solver options.
/opt/conda/.condarc
System-wide conda configuration.

INSTALL

sudo dnf install conda
copy
nix profile install nixpkgs#conda
copy

SEE ALSO

Copied to clipboard
Kai