报错信息如下:
解决步骤:
yum remove gcc
yum remove gdb
yum install scl-utils
yum install centos-release-scl
yum list all --enablerepo='centos-sclo-rh' | grep "devtoolset"
yum install -y devtoolset-11-toolchain
vi ~/.bash_profile
PATH=$PATH:/opt/rh/devtoolset-11/root/usr/bin
source ~/.bash_profile
scl enable devtoolset-11 bash
gcc --version
pip install llama-cpp-python==0.1.48 -i Simple Index
success!
参考链接:https://www.zhaoyanchang.com/detail/107.html