由于requirement众所周知的缺陷,现在官方使用基于 pyproject.toml 的配置来配置一个项目环境。uv提供了众多官方命令的封装,加速开发,简化管理。

Installation | uv

安装

curl -LsSf <https://astral.sh/uv/install.sh> | sh
# macOS / Linux
curl -LsSf <https://gitee.com/wangnov/uv-custom/releases/download/0.9.22/uv-installer-custom.sh> | sh

echo 'eval "$(uv generate-shell-completion zsh)"' >> ~/.zshrc

其他安装途径见doc

使用