Skip to content

Commit 55a281d

Browse files
fix: 当不存在deps文件夹时(已经预装whl),直接跳过install
1 parent 763f69f commit 55a281d

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

agent/main.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -406,6 +406,8 @@ def _run_pip_command(cmd_args: list, operation_name: str) -> bool:
406406
def install_requirements(
407407
req_file="requirements.txt", pip_config: dict | None = None
408408
) -> bool:
409+
if not Path.exists(Path(project_root_dir) / "deps"):
410+
return True
409411
req_path = Path(project_root_dir) / req_file # 确保相对于项目根目录
410412
if not req_path.exists():
411413
logger.error(f"{req_file} 文件不存在于 {req_path.resolve()}")

0 commit comments

Comments
 (0)