command ‘gcc‘ failed with exit status 1

在用faster-rcnn训练自定义数据集时候运行过程中报错:
command ‘gcc’ failed with exit status 1

1. 产生原因:

就是缺少某一个模块,具体缺少的模块要看报错前的最后一行内容,如:
在这里插入图片描述
根据缺少的模块安装相应的模块就行了

2. 解决办法:

如缺少上图的模块就

pip install python-devel

如果是其他情况请尝试:(这种方法往往能起作用)

pip install cython

3. 注意:

4. 参考链接:

猜你喜欢

转载自blog.csdn.net/weixin_44409833/article/details/127238450