pip install uv 找不到uv命令
安装uvOME/.localbin其他方式太慢。
·
安装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"
更多推荐



所有评论(0)