# uv **Repository Path**: linClubs/uv ## Basic Information - **Project Name**: uv - **Description**: uv创建python虚拟环境 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2025-05-01 - **Last Updated**: 2025-10-01 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 1 安装 ~~~python curl -LsSf https://astral.sh/uv/install.sh | sh curl -LsSf https://gitee.com/linClubs/uv/blob/master/uv-installer.sh | sh uv python list uv venv --python 3.10.12 source .venv/bin/activate uv pip install torch==2.4.0 torchvision=0.19.0 -i https://pypi.tuna.tsinghua.edu.cn/simple/ uv pip install -i https://pypi.tuna.tsinghua.edu.cn/simple/ -e . ~~~ # 2 换源 ~~~python 1 项目配置 pyproject.toml 添加 [[tool.uv.index]] url = "https://pypi.tuna.tsinghua.edu.cn/simple" default = true uv.toml 添加 [[index]] url = "https://pypi.tuna.tsinghua.edu.cn/simple" default = true 2 环境变量 终端临时用 uv add --default-index https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple fastmcp 系统永久 vi ~/.bashrc export UV_INDEX_URL=https://pypi.tuna.tsinghua.edu.cn/simple # 额外镜像地址 export EXTRA_INDEX_URL=https://pypi.tuna.tsinghua.edu.cn/simple ~~~