Centernet: Install COCOAPI error: _mask.c: No such file or directory

Created on 12 Nov 2019  路  2Comments  路  Source: xingyizhou/CenterNet

when i Install COCOAPI with the following step:
COCOAPI=/path/to/clone/cocoapi
git clone https://github.com/cocodataset/cocoapi.git $COCOAPI
cd $COCOAPI/PythonAPI
make

print the follow error:
gcc -pthread -B /home/yun/anaconda3/envs/python3.6_pytorch0.4.1/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/yun/anaconda3/envs/python3.6_pytorch0.4.1/lib/python3.6/site-packages/numpy/core/include -I../common -I/home/yun/anaconda3/envs/python3.6_pytorch0.4.1/include/python3.6m -c pycocotools/_mask.c -o build/temp.linux-x86_64-3.6/pycocotools/_mask.o -Wno-cpp -Wno-unused-function -std=c99
gcc: error: pycocotools/_mask.c: No such file or directory
error: command 'gcc' failed with exit status 1
Makefile:3: recipe for target 'all' failed
make: * [all] Error 1

my gcc is 5.4 cuda=9.0

Most helpful comment

you can try "pip install cython"

All 2 comments

The same error. What should I do?

you can try "pip install cython"

Was this page helpful?
0 / 5 - 0 ratings

Related issues

VRCMF picture VRCMF  路  6Comments

lhyfst picture lhyfst  路  3Comments

ycxxn picture ycxxn  路  3Comments

deandiakov picture deandiakov  路  5Comments

wjx2 picture wjx2  路  7Comments