Linux command
conda-export 命令
文本
涉及管道、覆盖或删除,执行前请先确认路径和参数。
常用示例
Export current environment
conda export > [environment.yml]
Export without builds
conda export --no-builds > [environment.yml]
Export from history
conda export --from-history > [environment.yml]
说明
conda export outputs the current environment specification in YAML format. This can be used to recreate the environment on another system. Use --from-history for more portable exports that don't include transitive dependencies.
参数
- --no-builds
- Exclude build strings from output.
- --from-history
- Only include packages explicitly requested.
- -n, --name _name_
- Name of environment to export.
FAQ
What is the conda-export command used for?
conda export outputs the current environment specification in YAML format. This can be used to recreate the environment on another system. Use --from-history for more portable exports that don't include transitive dependencies.
How do I run a basic conda-export example?
Run `conda export > [environment.yml]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does --no-builds do in conda-export?
Exclude build strings from output.