报错信息:

package command-line-arguments
        imports github.com/amikos-tech/chroma-go
        imports github.com/amikos-tech/chroma-go/pkg/embeddings/default_ef
        imports github.com/amikos-tech/chroma-go/pkg/tokenizers/libtokenizers: build constraints exclude all Go files in /home/cloudapp/gopkg/pkg/mod/github.com/amikos-tech/chroma-go@v0.2.2/pkg/tokenizers/libtokenizers
 

原因:

使用了c的交叉编译,但本机没有c编译环境导致

解决方法:

安装c编译环境

yum -y install gcc

Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐