mirror of
https://github.com/OLmatter/glm-coding-helper.git
synced 2026-10-07 09:43:43 +08:00
Root cause of 100% install failure: setup_backend.py --pip-arg used action=append, so '--pip-arg -i' made argparse treat '-i' (a dash-prefixed value) as the next option and abort with 'error: argument --pip-arg: expected one argument'. The mirror set by one_click_start.ps1 never reached pip -> mainland users hit PyPI timeout -> 'Backend environment repair failed'. Fix: - bootstrap_windows.ps1: emit '--pip-arg=VALUE' (= form) so dash-prefixed values like -i / --index-url are not misparsed as options. - setup_backend.py: also pass mirror to the 'pip install --upgrade pip setuptools wheel' step (line 137 previously had none, would time out before requirements). - Verified end-to-end: fresh venv, full CPU install via Tsinghua mirror, paddleocr-3.7.0 + paddlepaddle-3.3.1 installed, smoke test passed.