LinuxCommandLibrary

conda-run

environment command executor

TLDR

Run a command in an environment

$ conda run -n [env_name] [command]
copy
Run Python script in environment
$ conda run -n [env_name] python [script.py]
copy
Run with live output
$ conda run --live-stream -n [env_name] [command]
copy

SYNOPSIS

conda run [options] command

DESCRIPTION

conda run executes a command within a conda environment without activating it. This is useful for scripts and automation where you need to run commands in different environments.

PARAMETERS

-n, --name name

Run in named environment.
-p, --prefix path
Run in environment at path.
--live-stream
Stream output in real-time.
--no-capture-output
Don't capture stdout/stderr.

CONFIGURATION

~/.condarc

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

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community