diff --git a/start.command b/start.command index 33b7443..c34930b 100755 --- a/start.command +++ b/start.command @@ -36,8 +36,9 @@ fi if [[ ! -d server/.venv ]]; then echo "未找到 server/.venv,正在创建并安装依赖…" python3 -m venv server/.venv || exit 1 - server/.venv/bin/pip install -q -r server/requirements.txt || exit 1 fi +# 每次启动同步依赖:代码新增依赖(如 Pillow)装上即可用,已满足时秒过 +server/.venv/bin/pip install -q -r server/requirements.txt || exit 1 if [[ ! -f .env ]]; then echo "未找到 .env,已从 .env.example 复制,请填入 API Key 后再启动。"