1.安装
# On macOS and Linux.
curl -LsSf https://astral.sh/uv/install.sh | sh
如上述可能无法连接外网无法安装
可通过下载sh脚本并上传至服务器
[root@centos-5 ~]# ls
anaconda-ks.cfg docker-compose.ml docker-in-action frpc hdd kubekey lxltest NVIDIA-Linux-x86_64-550.135.run ollma openssh-update-main openssh-update-main.zip qinglong spider test test.zip uv-installer.sh
授权 执行
chmod +x uv-installer.sh
# 安装
./uv-installer.sh
# 加入环境变量
echo 'export PATH=$PATH:/root/.local/bin' >> /root/.bashrc
# 应用
source /root/.bashrc
[root@centos-5 ~]# ./uv-installer.sh
downloading uv 0.7.19 x86_64-unknown-linux-gnu
no checksums to verify
installing to /root/.local/bin
uv
uvx
everything's installed!
[root@centos-5 ~]# uv
-bash: uv: 未找到命令
[root@centos-5 ~]# echo 'export PATH=$PATH:/root/.local/bin' >> /root/.bashrc
[root@centos-5 ~]# source /root/.bashrc
现在可以正常的使用uv了