uv
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chineseuv (Python Package Manager)
uv (Python Package Manager)
uvuvEnsure is available before running any skill that depends on it.
uvuv请在运行任何依赖uv的技能之前,确保uv可用。
Setup
安装步骤
- Check if is already available:
uvIf this succeeds,uv --versionis ready — skip the remaining steps.uv - Check whether is installed at its default location but not on PATH:
uvIf this succeeds, skip to step 4."$HOME/.local/bin/uv" --version - If uv is not installed do both these steps in order:
(a) Tell the user that uv is a tool for creating a consistent and reliable
Python environment used for running the Science Skills, and that you
need to install it now.
(b) Install :
uvcurl -LsSf https://astral.sh/uv/install.sh | sh - Add to PATH and verify (run as a single command):
uvexport PATH="$HOME/.local/bin:$PATH" && uv --version
After setup, bare commands should work without repeating the export.
uv- 检查uv是否已可用:执行 ,若命令执行成功,则uv已准备就绪——跳过剩余步骤。
uv --version - 检查uv是否已安装在默认位置但未添加至PATH:执行 ,若命令执行成功,则跳至步骤4。
"$HOME/.local/bin/uv" --version - 若uv未安装,请按顺序执行以下两步:
(a) 告知用户,uv是用于创建一致且可靠的Python环境的工具,Science Skills 运行依赖于此环境,现在需要安装uv。
(b) 安装uv:执行
curl -LsSf https://astral.sh/uv/install.sh | sh - 将uv添加至PATH并验证(作为单个命令执行):
export PATH="$HOME/.local/bin:$PATH" && uv --version
完成安装后,直接执行命令即可生效,无需重复执行export命令。
uv