# uv 项目配置文件 # 配置国内镜像源加速下载 # 主要的 PyPI 镜像源 index-url = "https://pypi.tuna.tsinghua.edu.cn/simple" # 额外的镜像源 extra-index-url = [ "https://mirrors.aliyun.com/pypi/simple/", "https://mirrors.cloud.tencent.com/pypi/simple/", ] # 索引策略 - 允许从所有索引中选择最佳版本 index-strategy = "unsafe-best-match" # 缓存目录(移除此配置,使用 uv 默认缓存位置) # cache-dir = "~/.cache/uv" # 并发下载数 concurrent-downloads = 10 # Python 解释器下载镜像源配置 # 注意:uv 使用的是 python-build-standalone 项目的构建版本 # 暂时注释掉镜像源配置,使用默认源确保兼容性 # python-install-mirror = "https://mirror.nju.edu.cn/github-release/indygreg/python-build-standalone/" # 可尝试的镜像源(需要验证路径格式): # python-install-mirror = "https://mirrors.tuna.tsinghua.edu.cn/python-release/" # python-install-mirror = "https://mirrors.aliyun.com/python-release/" # python-install-mirror = "https://mirrors.ustc.edu.cn/python/" # 如果需要加速,可以设置代理或使用以下环境变量: # export UV_PYTHON_INSTALL_MIRROR="镜像源URL"