fix: pip 镜像失败时自动回退并提示代理

EOF

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-07-18 00:01:51 +08:00
parent 31a0363a22
commit 8cf375d178
4 changed files with 129 additions and 6 deletions
+2 -1
View File
@@ -33,8 +33,9 @@ fi
log_info "更新主程序依赖…"
cd backend
# shellcheck source=/dev/null
source venv/bin/activate
pip install -r requirements.txt --progress-bar on -i "${PIP_MIRROR}"
pip_install_with_fallback -r requirements.txt
deactivate
cd "${INSTALL_DIR}"