uv
An extremely fast Python package and project manager, written in Rust.
Installation
PowerShell
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"bash
curl -LsSf https://astral.sh/uv/install.sh | shPowerShell
$GITHUB_MIRROR = "https://gh-proxy.com/https://github.com"
$env:UV_INSTALLER_GITHUB_BASE_URL = $GITHUB_MIRROR
powershell -ExecutionPolicy ByPass -c "irm $GITHUB_MIRROR/astral-sh/uv/releases/latest/download/uv-installer.ps1 | iex"bash
export GITHUB_MIRROR="https://gh-proxy.com/https://github.com"
export UV_INSTALLER_GITHUB_BASE_URL=$GITHUB_MIRROR
curl -LsSf $GITHUB_MIRROR/astral-sh/uv/releases/latest/download/uv-installer.sh | shConfiguration mirror
PowerShell
New-Item -ItemType Directory -Path "$env:APPDATA\uv" -Force
@"
python-install-mirror = "https://registry.npmmirror.com/-/binary/python-build-standalone"
[[index]]
url = "https://mirrors.aliyun.com/pypi/simple"
default = true
"@ | Out-File -FilePath "$env:APPDATA\uv\uv.toml" -Encoding utf8bash
mkdir -p ~/.config/uv
cat <<EOF > ~/.config/uv/uv.toml
python-install-mirror = "https://registry.npmmirror.com/-/binary/python-build-standalone"
[[index]]
url = "https://mirrors.aliyun.com/pypi/simple"
default = true
EOFpowershell
$GITHUB_MIRROR = "https://gh-proxy.com/https://github.com"
$env:UV_PYTHON_INSTALL_MIRROR = "$GITHUB_MIRROR/astral-sh/python-build-standalone/releases/download"
$env:UV_DEFAULT_INDEX="https://mirrors.aliyun.com/pypi/simple"bash
export GITHUB_MIRROR="https://gh-proxy.com/https://github.com"
export UV_PYTHON_INSTALL_MIRROR="$GITHUB_MIRROR/astral-sh/python-build-standalone/releases/download"
export UV_DEFAULT_INDEX="https://mirrors.aliyun.com/pypi/simple"Other mirrors
Install python
sh
uv python install <version>List python versions
sh
# List latest patch versions
uv python list
# List all versions
uv python list --all-versions