office_gzweb/update_requirements.sh

16 lines
446 B
Bash
Executable File

#!/usr/bin/env bash
# 安装 vision_yolo 依赖到 /workspace/.site-packages
# 容器重启后系统盘重置,但 /workspace 是 EFS 持久化存储
set -euo pipefail
TARGET="/workspace/.site-packages"
mkdir -p "$TARGET"
pip install ultralytics opencv-python "numpy<2" \
-t "$TARGET" \
-i https://pypi.tuna.tsinghua.edu.cn/simple \
--no-cache-dir
echo "Dependencies installed to $TARGET"
echo "PYTHONPATH is already set in run_all.sh"