Layout-Parser / layout-parser

A Unified Toolkit for Deep Learning Based Document Image Analysis
https://layout-parser.github.io/
Apache License 2.0
4.83k stars 464 forks source link

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

Open cmeer opened 2 years ago

cmeer commented 2 years ago

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 commented 2 years ago

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.