安装uv管理

安装uv管理

windows powershell

1
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"

linux

1
2
curl -LsSf https://astral.sh/uv/install.sh | sh
wget -qO- https://astral.sh/uv/install.sh | sh

pip安装

1
pip install uv

配置加速源

在uv.toml添加加速源,或者在pyproject.toml添加加速源

1
2
3
[[index]]
url = "https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple/"
default = true