ensureconda
Lightweight bootstrapper for a conda executable
What it is and what it does
Ensureconda is a lightweight CLI bootstrapper that automates the discovery and installation of conda or mamba executables. It searches for an existing conda/mamba on the system, installs one if none is found (and installation is permitted), and returns the path to the executable on stdout. The tool supports multiple conda variants—mamba, micromamba, conda, and conda-standalone—each with configurable minimum version requirements and optional installation behavior.
It's designed for automation workflows, CI/CD pipelines, and scripts that need a reliable conda environment without manual setup. The package includes both a Python implementation (supporting Python 3.8+) and a standalone Go binary, and allows configuration of the conda-standalone download channel via environment variables.
Use it for:
- Automated CI/CD pipelines that need conda available without requiring it pre-installed on the runner.
- Build scripts that bootstrap a conda environment for reproducible package management across machines.
- Container images or deployment automation that must discover or provision conda at runtime.
- Development tools that depend on conda but want to fail gracefully if it's not present rather than erroring immediately.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
A CLI tool that finds or installs a conda/mamba executable, returning its path for use in scripts and automation.
Yes, if you need to programmatically ensure conda/mamba is available in automation or CI/CD contexts. The low install friction, permissive license, and stable Python 3.8+ support make it a reasonable choice. However, the aging maintenance status (312 days since last release) suggests limited active development; verify that its feature set and conda-standalone download reliability meet your specific requirements before committing to it in critical pipelines.
Install
ensureconda on PyPI
pip
pip install ensurecondauv
uv add ensurecondapoetry
poetry add ensurecondaInstalling ensureconda
Before you install
Low friction install with six common dependencies (appdirs, click, conda-package-streaming, filelock, packaging, requests). Maintenance status is aging—last release was 312 days ago, though the repository remains active with a recent commit on 2026-02-01.
License in practice
MIT license (permissive) imposes no restrictions on use, modification, or distribution in proprietary or open-source projects.
Quickstart
$ pip install ensureconda
$ ensureconda --help
$ ensureconda --conda-exe
Requires Python 3.8 or later; conda or mamba must be discoverable on the system PATH or will be downloaded during execution.
Verify before relying
- Whether the tool can reliably detect conda/mamba across all major operating systems without manual PATH configuration.
- Performance impact of downloading conda-standalone on first run if no local conda is found.
- Whether the Go-based binary reimplementation is feature-parity with the Python version.
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (>=3.8) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 6 — appdirs, click, conda-package-streaming, filelock, packaging, requests |
| Maintenance | aging — 312 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 85,754/month — #13,898 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: ensureconda-1.6.0-py3-none-any.whl
Tags
More Build Tools packages
Provides reusable utilities for Python…
permissive · top 100 on PyPI
tqdmWraps any iterable to display a real-time…
copyleft · top 100 on PyPI
pippip is the standard installer for Python…
permissive · top 100 on PyPI
hatchlingHatchling is a standards-compliant Python build…
permissive · top 100 on PyPI
grpcio-toolsGenerates Python gRPC service stubs and message…
permissive · top 1,000 on PyPI
pre-commitpre-commit is a framework for installing and…
permissive · top 1,000 on PyPI
unidepUniDep unifies Conda and Pip dependency…
unclear · top 15,000 on PyPI
conda-packconda-pack creates relocatable conda…
permissive · top 15,000 on PyPI
unearthFinds and downloads Python packages from…
permissive · top 5,000 on PyPI
metaflow-netflixextProvides Netflix-developed extensions to…
permissive · top 15,000 on PyPI
s5cmdProvides a Python wheel distribution that…
permissive · top 5,000 on PyPI
pbs-installerDownloads and installs python-build-standalone…
permissive · top 1,000 on PyPI
execnbExecutes Jupyter notebook code and captures…
permissive · top 15,000 on PyPI
find-exeFinds executables on the system matching…
unclear · top 15,000 on PyPI
installerA low-level library for unpacking and…
permissive · top 1,000 on PyPI
shellcheck-pyProvides a pip-installable shellcheck binary…
permissive · top 5,000 on PyPI