tusen-ai / simpledet

A Simple and Versatile Framework for Object Detection and Instance Recognition
Apache License 2.0
3.08k stars 486 forks source link

When installing cocoapi, it fails with gcc error #223

Closed wmmxk closed 5 years ago

wmmxk commented 5 years ago

The version of my gcc is 7.4 on a ubuntu 18.04.1. When I run pip install 'git+https://github.com/RogerChern/cocoapi.git#subdirectory=PythonAPI'. I run into this error:

gcc: error: pycocotools/_mask.c: No such file or directory error: command 'gcc' failed with exit status 1

ERROR: Failed building wheel for pycocotools

I googled the error and found the following solution.. I installed the following libs, now it works. sudo apt-get install python3 python-dev python3-dev \ build-essential libssl-dev libffi-dev \ libxml2-dev libxslt1-dev zlib1g-dev \ python-pip

RogerChern commented 5 years ago

Try the official cocoapi repo?

pip3 install git+https://github.com/cocodataset/cocoapi.git#subdirectory=PythonAPI