install#

Conda package installation logic.

Core logic for conda [create|install|update|remove] commands.

See conda.cli.main_create, conda.cli.main_install, conda.cli.main_update, and conda.cli.main_remove for the entry points into this module.

Functions#

validate_prefix_exists(→ None)

Validate that we are receiving at least one valid value for --name or --prefix.

validate_new_prefix(→ str)

Ensure that the new prefix does not exist.

check_prefix(prefix[, json])

clone(src_arg, dst_prefix[, json, quiet, index_args])

print_activate(env_name_or_prefix)

get_revision(arg[, json])

install(args, parser[, command])

Logic for conda install, conda update, and conda create.

revert_actions(prefix[, revision, index])

handle_txn(unlink_link_transaction, prefix, args, newenv)

Attributes#

stderrlog#
validate_prefix_exists(prefix: str | pathlib.Path) None#

Validate that we are receiving at least one valid value for --name or --prefix.

validate_new_prefix(dest: str, force: bool = False) str#

Ensure that the new prefix does not exist.

check_prefix(prefix: str, json=False)#
clone(src_arg, dst_prefix, json=False, quiet=False, index_args=None)#
print_activate(env_name_or_prefix)#
get_revision(arg, json=False)#
install(args, parser, command='install')#

Logic for conda install, conda update, and conda create.

revert_actions(prefix, revision=-1, index=None)#
handle_txn(unlink_link_transaction, prefix, args, newenv, remove_op=False)#