起因:
配置bevformer环境时,需要源码安装mmdet3d,在确认cuda版本、torch版本以及mmcv和mmdet版本都没有问题时,出现了错误:“gcc: fatal error: cannot execute ‘cc1plus’: execvp: No such file or directory”
解决方案:
查询后得知,该问题是由于我linux服务器中的gcc和g++版本不匹配造成的
我的gcc -v是9.4
而之前的g++是11
所以安装g++=9,重新配置软连接即可