Centos7 安装 Google BERT 和 milvus 报错

pip install bert-serving-server  # server
pip install bert-serving-client  # client, independent of `bert-serving-server`

上面的命令可以正常安装,在安装 tensorflow 时会报以下错误

distutils.errors.CompileError: command 'gcc' failed with exit status 1

后来发现是 gcc 版本太低,Centos 7 上默认的 gcc 版本只有 4.8,需要对 gcc 进行升级。

yum install centos-release-scl
yum install devtoolset-9-gcc*

scl enable devtoolset-9 bash
gcc -v

发表评论