
These can be referened as follows conda-lock -extra mysql -extra pgsql -f pyproject.toml # create an environment from the lockfileĬonda-lock install mysql = pgsql = # optionally, update the previous solution, using the latest version of # pydantic that is compatible with the source specification (Otherwise there is a risk of dependency conflicts.) Basic usage # generate a multi-platform lockfileĬonda-lock -f environment.yml -p osx-64 -p linux-64 The first two options are recommended since they install conda-lock into an isolated environment. Mamba install -channel =conda-forge -name =base conda-lock Use one of the following commands: pipx install conda-lockĬonda install -channel =conda-forge -name =base conda-lock This is particularly handy in the context of a gitops style setup where you use conda to provision environments in Why?Ĭonda environment.yml files are very useful for defining desired environments but there are times when we want toīe able to EXACTLY reproduce an environment by just installing and downloading the packages needed.

Results in the conda solver not being invoked when installing the packages from the generated lockfile. This also has the added benefit of acting as an external pre-solve for conda as the lockfiles it generates It does this by performing a conda solve for each platform you desire a lockfile for. Conda lock is a lightweight library that can be used to generate fully reproducible lock files for conda
