mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-11-23 03:19:41 +00:00
fix(ci): 阿里云 PyPI 镜像 metadata 缺失回退官方源 (#3417)
基镜像构建挂了——日志显示 pip 在装 requirements.txt 阶段退出码 1, 罪魁是阿里云 pypi 镜像对 mcp==1.22.0 的元数据文件 404。 装包那行加 --extra-index-url https://pypi.org/simple, 主源没货时自动去官方源捞。
This commit is contained in:
parent
c30c40bf56
commit
4576e391bb
1 changed files with 2 additions and 1 deletions
|
|
@ -29,4 +29,5 @@ COPY main/xiaozhi-server/requirements.txt .
|
|||
|
||||
# 安装Python依赖
|
||||
RUN pip install --no-cache-dir --upgrade pip setuptools wheel && \
|
||||
pip install --no-cache-dir -r requirements.txt --default-timeout=120 --retries 5
|
||||
# 阿里云 PyPI 镜像偶有元数据 404,加官方源作 fallback
|
||||
pip install --no-cache-dir -r requirements.txt --default-timeout=120 --retries 5 --extra-index-url https://pypi.org/simple
|
||||
Loading…
Reference in a new issue