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
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