为什么需要一个未知的gcc来编译spaCy?

2024-06-16 14:04:32 发布

您现在位置:Python中文网/ 问答频道 /正文

在Ubuntu下安装spaCy时,出现了如下编译错误。你知道吗

安装代码只是使用pip install spacy。你知道吗

/opt/rh/devtoolset-2/root/usr/bin/gcc -pthread -fPIC -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/mnt/nfs/lijin/local/opt/include/python2.7 -I/tmp/pip-install-ikyFEg/spacy/include -I/mnt/nfs/lijin/local/opt/include/python2.7 -c spacy/parts_of_speech.cpp -o build/temp.linux-x86_64-2.7/spacy/parts_of_speech.o -O2 -Wno-strict-prototypes -Wno-unused-function unable to execute '/opt/rh/devtoolset-2/root/usr/bin/gcc': No such file or directory error: command '/opt/rh/devtoolset-2/root/usr/bin/gcc' failed with exit status 1

我的系统有一个/usr/bin/gcc,但不在/opt/rh/xxx。有人能帮忙解决这个问题吗?非常感谢。你知道吗


Tags: installpipbinincludespacyusrrootgcc