安装uv

pip install uv
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc
source ~/.bashrc

其他方式太慢

换源:

方案一: 修改~/.config/uv/uv.toml

这个是换源 pypi
[[index]]
url = "https://mirrors.aliyun.com/pypi/simple/"
default = true
这个是换源 python
[tool.uv]
python-install-mirror = "https://gh-proxy.com/https://github.com/astral-sh/python-build-standalone/releases/download"

参考

方案二: 修改 pyproject.toml

[[tool.uv.index]]
url  = "https://pypi.tuna.tsinghua.edu.cn/simple"

[tool.uv]python-install-mirror = "https://gh-proxy.com/https://github.com/astral-sh/python-build-standalone/releases/download"
Logo

电影级数字人,免显卡端渲染SDK,十行代码即可调用,工业级demo免费开源下载!

更多推荐