Python environment(Python 环境)¶
The Python environment used for a transform is resolved during Checks using the Hawk package manager based on the specified list of packages in the conda_recipe/meta.yaml file. Using the package tab, you can discover available packages and automatically add these to your meta.yml for environment resolution. This resolved environment is published internally to Artifacts ready for use during the build.
When the transform is built, it fetches the environment file and installs the required packages specified in the environment file. If this fails for some reason, the transform will fall back to resolving the environment again during the build using Hawk.
Useful resources¶
See Introduction to Environment Creation for an introduction to using Conda, Mamba, and Hawk to create environments. For general troubleshooting of common environment problems, see Environment Troubleshooting Guide.
中文翻译¶
Python 环境¶
用于转换(transform)的 Python 环境 在检查(Checks)过程中通过 Hawk 包管理器解析,该解析基于 conda_recipe/meta.yaml 文件中指定的包列表。通过使用包选项卡,您可以发现可用的包并自动将其添加到 meta.yml 中以供环境解析。解析后的环境会内部发布到 Artifacts,供构建期间使用。
当转换被构建时,它会获取环境文件并安装环境文件中指定的所需包。如果此过程因某种原因失败,转换将在构建期间回退到使用 Hawk 再次解析环境。
实用资源¶
请参阅环境创建简介,了解如何使用 Conda、Mamba 和 Hawk 创建环境。有关常见环境问题的常规故障排除,请参阅环境故障排除指南。