Python的依赖管理工具,性能非常高,执行速度很快。

src: uv

安装

curl -LsSf https://astral.sh/uv/install.sh | sh

使用

# 已有 pyproject.toml 的情况下
uv sync
 
# 还没有 pyproject.toml 的情况下
uv init
 
# 从其他环境管理软件中迁移
uvx migrate-to-uv
 
# 添加依赖
uv add {some_deps}

Docker 镜像

ref: Using uv in Docker | uv

docker run --rm -it ghcr.io/astral-sh/uv:debian uv --help