Registry / devops / conda-lock

conda-lock

JSON →
library4.0.0pypypiunverified

Lightweight lockfile manager for conda environments. Version 4.0.0 requires Python >=3.10; supports conda, mamba, and micromamba. Frequent releases with active maintenance.

pip install conda-lock
INSTALL
IMPORT
SIG · CONDA-LOCK
C
conda-lock
devopspythonv4.0.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Generate a conda lockfile from an environment.yml. Run in directory with environment.yml. Produces files like conda-linux-64.lock.

conda-lock --file environment.yml
conda-lock --version
Debug
Known issues
breakingConda-lock v4 drops support for Python 3.9.
fix
Upgrade to Python >=3.10.
affects: >=4.0.0
gotchaWhen using --strip-auth, the port for private PyPI repos is also stripped, breaking authentication on non-standard ports.
fix
Use conda-lock >=3.0.2 or manually preserve the port.
affects: 3.0.1
gotchaThe --check-input-hash flag is disabled when --strip-auth is used in v3.0.1, causing unnecessary relocking.
fix
Upgrade to conda-lock >=3.0.2.
affects: 3.0.1
gotchaMamba/micromamba versions 2.0.0 through 2.0.6 are incompatible with conda-lock v3. It only supports <2 or >=2.0.7.
fix
Use mamba/micromamba <2 or >=2.0.7. Check executable with --log-level=DEBUG.
affects: >=3.0.0,<4.0.0
Errors
Common errors & fixes
KeyError: 'pkgs_dirs'
Bug in conda-lock when parsing conda configuration with missing pkgs_dirs key.
fix
Upgrade to conda-lock >=2.5.8 (backported fix) or >=3.0.0.
TypeError: expected string or null, got 'int'
Incompatibility with newer pydantic or dulwich in conda-lock v3 prior to 3.0.4.
fix
Upgrade to conda-lock >=3.0.4.
Upgrade
Version history
4.0.0latest on PyPI · released Dec 22, 2025
Audit
Dependencies

No dependency data recorded yet.

Agent activity
26 hits · last 30 days
node
20
OpenAI (training)
2
Resources
conda-lock — pip install conda-lock · libregistry