uv
文档
镜像配置
pyproject.toml
toml
[[tool.uv.index]]
url = "https://mirrors.ustc.edu.cn/pypi/simple"
default = trueuv.toml
toml
[[index]]
url = "https://mirrors.ustc.edu.cn/pypi/simple"
default = true快速入门
安装 Python:
shell
uv python install初始化项目:
shell
uv init example添加依赖:
shell
uv add ruff更新项目环境:
shell
uv sync