uv国内源没有cpython
最后还是用github,同样没开代理,cpython大小是32M 等了一分钟就装好了。校园网,安装uv用的官方代码,没开代理,要等一分钟。记录自己想在国内用uv,坎坷的安装过程。配镜像,创建虚拟环境发现国内源会错误。创建虚拟环境前想先按照官方文档。
·
记录自己想在国内用uv,坎坷的安装过程。
校园网,安装uv用的官方代码,没开代理,要等一分钟。
curl -LsSf https://astral.sh/uv/install.sh | sh
创建虚拟环境前想先按照官方文档Configuration files | uv配镜像,创建虚拟环境发现国内源会错误
Failed to download
│ https://mirror.nju.edu.cn/github-release/indygreg/python-build-standalone/20250612/cpython-3.12.11%2B20250612-x86_64-unknown-linux-gnu-install_only_stripped.tar.gz
╰─▶ HTTP status client error (404 Not Found) for url
(https://mirror.nju.edu.cn/github-release/indygreg/python-build-standalone/20250612/cpython-3.12.11%2B20250612-x86_64-unknown-linux-gnu-install_only_stripped.tar.gz)
最后还是用github,同样没开代理,cpython大小是32M 等了一分钟就装好了。
#python-install-mirror = "https://mirror.nju.edu.cn/github-release/indygreg/python-build-standalone/"
#python-install-mirror = "https://registry.npmmirror.com/-/binary/python-build-standalone/%22"
python-install-mirror = "https://github.com/indygreg/python-build-standalone/releases/download"
[[index]]
url = "https://pypi.tuna.tsinghua.edu.cn/simple"
default = true
环境激活成功
yu@yu-MS-7B94:~$ uv venv vllm --python 3.12 --seed
Using CPython 3.12.11
Creating virtual environment with seed packages at: vllm
+ pip==25.1.1
Activate with: source vllm/bin/activate
yu@yu-MS-7B94:~$ ^C
yu@yu-MS-7B94:~$ source vllm/bin/activate
(vllm) yu@yu-MS-7B94:~$
更多推荐
所有评论(0)