
这是一个与 uv 官方版本同步的镜像版本,为国内用户提供了以下优化:
请根据您的操作系统,在终端中运行以下对应的一键安装命令。推荐使用 Gitee 源。
# macOS / Linux
curl -LsSf https://gitee.com/wangnov/uv-custom/releases/download/0.9.12/uv-installer-custom.sh | sh
# Windows (PowerShell)
powershell -ExecutionPolicy Bypass -c "irm https://gitee.com/wangnov/uv-custom/releases/download/0.9.12/uv-installer-custom.ps1 | iex"
# macOS / Linux
curl -LsSf https://github.com/Wangnov/uv-custom/releases/download/0.9.12/uv-installer-custom.sh | sh
# Windows (PowerShell)
powershell -ExecutionPolicy Bypass -c "irm https://github.com/Wangnov/uv-custom/releases/download/0.9.12/uv-installer-custom.ps1 | iex"
您可以在运行一键安装命令前,通过设置环境变量来临时指定下载代理和 PyPI 镜像。并可以选择下载不同的uv版本。
UV_DOWNLOAD_PROXY="https://gh-proxy.com" UV_PYPI_MIRROR="https://mirrors.aliyun.com/pypi/simple/" UV_VERSION="0.7.19" curl -LsSf https://gitee.com/wangnov/uv-custom/releases/download/0.9.12/uv-installer-custom.sh | sh
:UV_DOWNLOAD_PROXY="https://gh-proxy.com"; :UV_PYPI_MIRROR="https://mirrors.aliyun.com/pypi/simple/"; :UV_VERSION="0.7.19"; powershell -ExecutionPolicy Bypass -c "irm https://gitee.com/wangnov/uv-custom/releases/download/0.9.12/uv-installer-custom.ps1 | iex"
如果您希望 uv 能够自动识别并管理当前激活的 Conda/Mamba 环境,可以运行以下对应的脚本来配置 Shell 钩子。
# macOS / Linux
curl -LsSf https://gitee.com/wangnov/uv-custom/releases/download/0.9.12/setup_hooks.sh | sh
# Windows (PowerShell)
powershell -ExecutionPolicy Bypass -c "irm https://gitee.com/wangnov/uv-custom/releases/download/0.9.12/setup_hooks.ps1 | iex"