:py:mod:`conda` =============== .. py:module:: conda.env.installers.conda .. autoapi-nested-parse:: Conda-flavored installer. Functions --------- .. autoapisummary:: conda.env.installers.conda._solve conda.env.installers.conda.dry_run conda.env.installers.conda.install .. py:function:: _solve(prefix: str, specs: list[str], args: argparse.Namespace, env: conda.models.environment.Environment, *_, **kwargs) -> conda.core.solve.Solver Solve the environment. :param prefix: Installation target directory :param specs: Package specifications to install :param args: Command-line arguments :param env: Environment object :return: Solver object .. py:function:: dry_run(specs: list[str], args: argparse.Namespace, env: conda.models.environment.Environment, *_, **kwargs) -> conda.env.env.EnvironmentYaml Do a dry run of the environment solve. :param specs: Package specifications to install :param args: Command-line arguments :param env: Environment object :return: Solved environment object :rtype: EnvironmentYaml .. py:function:: install(prefix: str, specs: list[str], args: argparse.Namespace, env: conda.models.environment.Environment, *_, **kwargs) -> dict | None Install packages into a conda environment. This function handles two main paths: 1. For environments with explicit_specs (from @EXPLICIT files): Bypasses the solver and directly installs packages using conda.misc.explicit() as required by CEP-23. 2. For regular Environment instances: Uses the solver to determine the optimal package set before installation. :param prefix: The target installation path for the environment :param specs: Package specifications to install :param args: Command-line arguments from the conda command :param env: Environment object containing dependencies and channels :return: Installation result information .. note:: This implementation follows CEP-23, which states: "When an explicit input file is processed, the conda client SHOULD NOT invoke a solver."