跳转到主要内容

从新式锁文件中安装pip依赖项

项目描述

micromamba-install-locked-pip-dependencies

PyPI - Version PyPI - Python Version


目录

链接

简介

当前Micromamba忽略新式锁文件中的pip依赖项。此脚本解析锁文件并安装这些依赖项。

此脚本除了Python 3.6+之外没有其他依赖项。(它实现了自己的原始YAML解析器。)

用法

要从conda-lock.yml安装main类别的依赖项,只需运行micromamba-install-locked-pip-dependencies。

对于更高级的使用

$ micromamba-install-locked-pip-dependencies --help
usage: micromamba-install-locked-pip-dependencies [-h] [-f LOCKFILE]
                                                  [-c CATEGORY] [--dry-run]
                                                  [--uninstall]
                                                  [--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

不安装

curl https://raw.githubusercontent.com/maresb/micromamba-install-locked-pip-dependencies/master/micromamba_install_locked_pip_dependencies/cli.py | python - --help

许可

micromamba-install-locked-pip-dependencies遵循MIT许可证的条款。

项目详情


下载文件

下载适合您平台的自定义文件。如果您不确定要选择哪个,请了解有关安装包的更多信息。

源分布

构建分布

由以下提供支持