How-to guides#

Task-oriented guides for specific use cases.

Run scripts

Run Python scripts with inline dependency metadata.

Run scripts with dependencies
Run command-line tools

Run conda-packaged commands without permanent installs.

Run command-line tools
Use PyPI dependencies

Resolve PEP 723 PyPI dependencies through conda-pypi.

Use PyPI dependencies in scripts
Manage cache

Control the conda-exec package cache.

Manage the cache
Configure cleanup

Tune automatic cache cleanup for workstations and CI runners.

Configure automatic cleanup
Lock scripts

Generate sidecar or embedded lock data for reproducible scripts.

Lock script environments
Use custom channels

Search bioconda, defaults, or other channels for packages.

Use custom channels
Use activation mode

Apply conda activation environment variables for tools that need CONDA_PREFIX.

Use activation mode
Pin package versions

Constrain tool versions using match specs.

Pin package versions
Use in CI/CD pipelines

Run tools ephemerally in CI without permanent installation.

Use in CI/CD pipelines
Migrate from classic conda-exec

Switch from the historical conda-forge package to modern conda-exec.

Migrate from classic conda-exec
Troubleshoot common issues

Fix errors with installation, caching, and tool discovery.

Troubleshoot common issues