Skip to content

Commit aa673c2

Browse files
optimize uv sync command
1 parent 0bfa4b6 commit aa673c2

File tree

20 files changed

+22
-22
lines changed

20 files changed

+22
-22
lines changed

00-advanced/agent_skills/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ pip install -r requirements.txt
112112
uv venv --python 3.12
113113

114114
# 使用 `pyproject.toml` 管理依赖
115-
uv sync
115+
uv sync --index-url https://pypi.tuna.tsinghua.edu.cn/simple
116116

117117
# 使用 `requirements.txt` 管理依赖
118118
uv pip install -r requirements.txt

01-tutorials/workshop/session1/langchain_agent_deploy_sample/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ session1/
7373
1. **依赖安装**
7474

7575
```bash
76-
uv sync
76+
uv sync --index-url https://pypi.tuna.tsinghua.edu.cn/simple
7777
source .venv/bin/activate
7878
```
7979

01-tutorials/workshop/session1/sandbox_tool_sample/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ sandbox_tool_sample/
5050
环境配置:确保已安装 `uv` 并配置好环境变量。
5151

5252
```bash
53-
uv sync
53+
uv sync --index-url https://pypi.tuna.tsinghua.edu.cn/simple
5454
source .venv/bin/activate
5555
cp .env.sample .env
5656
# 编辑 .env 文件,填入必要的 AGENTKIT_TOOL_ID 环境变量

01-tutorials/workshop/session1/veadk_agent_deploy_sample/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ veadk_agent_deploy_sample/
4141
首先确保安装项目依赖:
4242

4343
```bash
44-
uv sync
44+
uv sync --index-url https://pypi.tuna.tsinghua.edu.cn/simple
4545
source .venv/bin/activate
4646

4747
# 火山引擎访问凭证(必需)

01-tutorials/workshop/session3/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ irm https://force-workshop.tos-cn-beijing.volces.com/uv-latest/uv-installer.ps1
6666
export UV_PYTHON_INSTALL_MIRROR=https://force-workshop.tos-cn-beijing.volces.com/python-build-standalone
6767
export UV_INDEX_URL=https://pypi.tuna.tsinghua.edu.cn/simple/
6868
uv venv --python 3.12
69-
uv sync --force-reinstall
69+
uv sync --index-url https://pypi.tuna.tsinghua.edu.cn/simple --force-reinstall
7070
```
7171

7272
### 环境准备

01-tutorials/workshop/session4/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ pip install -r requirements.txt
4343

4444
```bash
4545
# 使用 `pyproject.toml` 管理依赖
46-
uv sync
46+
uv sync --index-url https://pypi.tuna.tsinghua.edu.cn/simple
4747

4848
# 使用 `requirements.txt` 管理依赖
4949
uv pip install -r requirements.txt

02-use-cases/beginner/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ export TOOL_TOS_URL=https://tos.mcp.volcbiz.com/mcp\?token\=xxxxx # 可选,
8383
cd 02-use-cases/beginner
8484

8585
# 安装所有案例的依赖(使用 uv)
86-
uv sync
86+
uv sync --index-url https://pypi.tuna.tsinghua.edu.cn/simple
8787

8888
# 启动 VeADK Web 调试界面
8989
veadk web --port 8080
@@ -117,7 +117,7 @@ veadk web --port 8080
117117
cd <案例目录>
118118

119119
# 初始化虚拟环境和安装依赖
120-
uv sync
120+
uv sync --index-url https://pypi.tuna.tsinghua.edu.cn/simple
121121

122122
# 激活虚拟环境
123123
source .venv/bin/activate

02-use-cases/beginner/a2a_simple/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ cd 02-use-cases/beginner/a2a_simple
187187
uv venv --python 3.12
188188

189189
# 使用 `pyproject.toml` 管理依赖
190-
uv sync
190+
uv sync --index-url https://pypi.tuna.tsinghua.edu.cn/simple
191191

192192
# 激活虚拟环境
193193
source .venv/bin/activate

02-use-cases/beginner/callback/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ cd 02-use-cases/beginner/callback
142142
uv venv --python 3.12
143143

144144
# 使用 `pyproject.toml` 管理依赖
145-
uv sync
145+
uv sync --index-url https://pypi.tuna.tsinghua.edu.cn/simple
146146

147147
# 激活虚拟环境
148148
source .venv/bin/activate

02-use-cases/beginner/episode_generation/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ cd 02-use-cases/beginner/episode_generation
146146
uv venv --python 3.12
147147

148148
# 使用 `pyproject.toml` 管理依赖
149-
uv sync
149+
uv sync --index-url https://pypi.tuna.tsinghua.edu.cn/simple
150150

151151
# 激活虚拟环境
152152
source .venv/bin/activate

0 commit comments

Comments
 (0)