更新时间:2026-09-14 GMT+08:00
执行agentarts launch命令,出现ReadTimeoutError: Read timed out报错
需修改Dockerfile中的pip install命令,添加国内镜像源和超时时间。
- 执行以下命令,打开Dockerfile:
vi Dockerfile
- 在文件中找到如下行:
RUN pip install --no-cache-dir -r requirements.txt
- 将该行替换为以下内容(添加镜像源和超时时间):
RUN pip install --no-cache-dir -i https://repo.huaweicloud.com/repository/pypi/simple --timeout 100 -r requirements.txt
- 按Esc键进入命令模式,输入:wq并按Enter键保存退出。
父主题: 运行时