You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

使用Poetry安装Contrast-agent包失败,寻求解决方法

解决Contrast包编译失败的问题

根据错误提示,问题源于缺少编译Contrast C扩展所需的依赖工具,以下是不同Linux发行版的解决步骤:

Debian/Ubuntu 系列

  • 执行命令安装编译基础工具及autotools组件:
    sudo apt update && sudo apt install build-essential autoconf automake
    

RedHat/CentOS/Rocky Linux 系列

  • 安装开发工具组和autotools依赖:
    sudo dnf groupinstall "Development Tools" && sudo dnf install autoconf automake
    

Alpine Linux

  • 轻量系统需额外安装linux-headers,执行以下命令:
    sudo apk add build-base autoconf automake linux-headers
    

完成依赖安装后,重新执行安装命令:

poetry install

内容的提问来源于stack exchange,提问作者sidharth vijayakumar

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.22 15:03:08