Skip to main content

Install pip dependencies from new-style lockfiles

Project description


PyPI - Version PyPI - Python Version

Table of Contents



Micromamba currently ignores pip dependencies in new-style lockfiles. This script parses the lockfile and installs those dependencies.

This script has no dependencies other than Python 3.6+. (It implements its own crude YAML parser.)


To install main-category dependencies from conda-lock.yml, simply run micromamba-install-locked-pip-dependencies.

For more advanced usage:

$ micromamba-install-locked-pip-dependencies --help
usage: micromamba-install-locked-pip-dependencies [-h] [-f LOCKFILE]
                                                  [-c CATEGORY] [--dry-run]
                                                  [--pip-location PIP_LOCATION]

Install pip dependencies from new-style lockfiles

optional arguments:
  -h, --help            show this help message and exit
  -f LOCKFILE, --lockfile LOCKFILE
                        Filename of the lockfile
  -c CATEGORY, --category CATEGORY
                        Category to install (default 'main')
  --dry-run             Do not actually install anything
  --uninstall           Do not actually install anything
  --pip-location PIP_LOCATION
                        Location of pip executable


pip install micromamba-install-locked-pip-dependencies

Without installation

curl | python - --help


micromamba-install-locked-pip-dependencies is distributed under the terms of the MIT license.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Built Distribution

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page