项目场景:
问题描述
gcc: error: …/common/maskApi.c: 没有那个文件或目录
error: Setup script exited with error: command ‘/usr/bin/gcc’ failed with exit code 1
原因分析:
pycocotools版本与Cython不适配
解决方案:
适当降低Cython版本,或者提升pycocotools版本。
例如:
我们报错时使用的pycocotools版本为2.0.4,而Cython版本为3.0.9,Cython的版本过新,将它换成0.29.36版本后,它便不会报错。