poetry sync
Sync your project's environment with the
poetry.lockfile. More information: https://python-poetry.org/docs/cli/#sync.
- Sync your project's environment with the
poetry.lockfile:
poetry sync
- Exclude one or more dependency groups for the installation:
poetry sync --without
- Select optional dependency groups:
poetry sync --with
- Install all dependency groups including optional groups:
poetry sync --all-groups
- Install specific dependency groups:
poetry sync --only
- Install project without dependencies:
poetry sync --only-root
- Specify extras to install:
poetry sync
- Skip the defaulted package installation for your project:
poetry sync --no-root
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
