uv的二进制程序包安装
curl -LsSf https://astral.sh/uv/install.sh | sh 自动化安装uv命令到本地,而且自动应用到 ~/.profile
如果没有生效,source ~/.profile 就可以使用uv命令。
Linux上配置uv的国内加速
mkdir -p ~/.config/uv 然后编辑 vim ~/.config/uv/uv.toml
输入如下内容:
[[index]]
url = "https://mirrors.aliyun.com/pypi/simple/"
default = true
# 或使用清华源
# url = "https://pypi.tuna.tsinghua.edu.cn/simple/"
9/18/2025小于 1 分钟