{"id":23671,"library":"ensureconda","title":"ensureconda","description":"Lightweight bootstrapper for a conda executable. Automatically downloads and installs conda or mamba (including conda-standalone) if not already present. Current version 1.6.0, requires Python >=3.8. Active maintenance with occasional releases.","status":"active","version":"1.6.0","language":"python","source_language":"en","source_url":"https://github.com/conda-incubator/ensureconda","tags":["conda","mamba","bootstrapper","environment","package-management"],"install":[{"cmd":"pip install ensureconda","lang":"bash","label":"Install from PyPI"}],"dependencies":[],"imports":[{"note":"Direct import; primary entry point is a function ensureconda()","wrong":null,"symbol":"ensureconda","correct":"import ensureconda"}],"quickstart":{"code":"import ensureconda\n\n# Returns path to conda executable (downloads if needed)\nconda_path = ensureconda.ensureconda()\nprint(conda_path)\n\n# Or use a specific package manager\nmamba_path = ensureconda.ensureconda(mamba=True)\nprint(mamba_path)","lang":"python","description":"Basic usage: ensureconda() finds or installs conda. Pass mamba=True for mamba."},"warnings":[{"fix":"export ENSURECONDA_CONDA_STANDALONE_CHANNEL=anaconda before calling ensureconda.","message":"In v1.6.0, conda-standalone is downloaded from conda-forge instead of the Anaconda channel. To revert to Anaconda channel, set environment variable ENSURECONDA_CONDA_STANDALONE_CHANNEL=anaconda or downgrade to v1.5.","severity":"breaking","affected_versions":">=1.6.0"},{"fix":"Pre-install conda/mamba in the environment or use a persistent cache.","message":"ensureconda may download large binaries (conda-standalone). Ensure network access and sufficient disk space, especially in CI environments.","severity":"gotcha","affected_versions":"all"},{"fix":"Check compatibility with conda-forge's conda-standalone or override channel.","message":"The conda-standalone from the Anaconda channel is no longer the default since v1.6.0. The new default is conda-forge, which may have different behavior.","severity":"deprecated","affected_versions":"1.6.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Use `import ensureconda` and call `ensureconda.ensureconda()` or upgrade to >=1.4.0.","cause":"Importing the package incorrectly or using an old version that uses a different API.","error":"AttributeError: module 'ensureconda' has no attribute 'ensureconda'"},{"fix":"Set ENSURECONDA_CONDA_STANDALONE_CHANNEL to anaconda or conda-forge, or manually install conda.","cause":"Network issues or the download URL changed (especially after v1.6.0 default channel switch).","error":"ConnectionError: Unable to download conda-standalone from ..."},{"fix":"Install conda/mamba via other means, or use a compatible platform.","cause":"Running on a platform for which conda-standalone is not available (e.g., 32-bit).","error":"ValueError: Unsupported platform"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}