layout-parser icon indicating copy to clipboard operation
layout-parser copied to clipboard

Error following install documentation: gcc failed, Failed to build pycocotools

Open cmeer opened this issue 3 years ago • 1 comments

Hello,

First of all thank you for creating this interesting toolkit!

I followed the installation steps but i get an error both on windows and linux. I am installing this in a anaconda environment with python 3.8

When i execute the second command: pip install "layoutparser[layoutmodels]"

I get the following error: error: command 'gcc' failed: No such file or directory [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for pycocotools Successfully built antlr4-python3-runtime Failed to build pycocotools ERROR: Could not build wheels for pycocotools, which is required to install pyproject.toml-based projects

cmeer avatar Sep 14 '22 16:09 cmeer

The problem was a fresh install of ubuntu misses gcc, g++, and libgl1. If you install that everything works. Maybe that can be added to the install script.

cmeer avatar Sep 15 '22 07:09 cmeer