From 4576e391bb1f45be514a3bdf358d7dbfac37643e Mon Sep 17 00:00:00 2001 From: hrz <1710360675@qq.com> Date: Mon, 12 Oct 2026 10:28:35 +0800 Subject: [PATCH] =?UTF-8?q?fix(ci):=20=E9=98=BF=E9=87=8C=E4=BA=91=20PyPI?= =?UTF-8?q?=20=E9=95=9C=E5=83=8F=20metadata=20=E7=BC=BA=E5=A4=B1=E5=9B=9E?= =?UTF-8?q?=E9=80=80=E5=AE=98=E6=96=B9=E6=BA=90=20(#3417)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 基镜像构建挂了——日志显示 pip 在装 requirements.txt 阶段退出码 1, 罪魁是阿里云 pypi 镜像对 mcp==1.22.0 的元数据文件 404。 装包那行加 --extra-index-url https://pypi.org/simple, 主源没货时自动去官方源捞。 --- Dockerfile-server-base | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile-server-base b/Dockerfile-server-base index 70429ab16..839df9c6b 100644 --- a/Dockerfile-server-base +++ b/Dockerfile-server-base @@ -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 \ No newline at end of file + # 阿里云 PyPI 镜像偶有元数据 404,加官方源作 fallback + pip install --no-cache-dir -r requirements.txt --default-timeout=120 --retries 5 --extra-index-url https://pypi.org/simple \ No newline at end of file