File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -17,9 +17,18 @@ Server 来访问七牛云存储、智能多媒体服务等。
17
17
# Mac,推荐使用 brew 安装
18
18
brew install uv
19
19
20
- # Linux & Mac,安装后注意把安装的包路径(uv 和 uvx 所保存的路径)加入环境变量 PATH 中,
21
- # 例如在 Mac 中,把安装的包路径 /Users/xxx/.local/bin 添加到 PATH 中,export PATH="/Users/xxx/.local/bin:$PATH",长期使用需添加到启动脚本中,例如:$Home/.bash_profile 中
20
+
21
+ # Linux & Mac
22
+ # 1. 安装
22
23
curl -LsSf https://astral.sh/uv/install.sh | sh
24
+ # 2. 安装完成后,请确保将软件包安装路径(包含 uv 和 uvx 可执行文件的目录)添加到系统的 PATH 环境变量中。
25
+ # 假设安装包路径为 /Users/xxx/.local/bin(见安装执行输出)
26
+ # ## 临时生效(当前会话),在当前终端中执行以下命令:
27
+ export PATH=" /Users/xxx/.local/bin:$PATH "
28
+ # ## 永久生效(推荐),在当前终端中执行以下命令:
29
+ echo ' export PATH="/Users/xxx/.local/bin:$PATH"' >> ~ /.bash_profile
30
+ source ~ /.bash_profile
31
+
23
32
24
33
# Windows
25
34
powershell -ExecutionPolicy ByPass -c " irm https://astral.sh/uv/install.ps1 | iex"
You can’t perform that action at this time.
0 commit comments