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

pip3 install detectron2

Open solidHeroLink opened this issue 3 years ago • 0 comments

I'm trying to run a Docker file and install layoutparser using the following pip command

RUN pip3 install layoutparser torchvision && pip install "git+https://github.com/facebookresearch/[email protected]#egg=detectron2"

I get the following error message back

`#15 354.2 aarch64-linux-gnu-gcc: fatal error: Killed signal terminated program cc1plus #15 354.2 compilation terminated. #15 354.2 error: command 'aarch64-linux-gnu-gcc' failed with exit status 1 #15 354.2 ---------------------------------------- #15 354.2 ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-j9rv61td/detectron2_679fb568038548bf8b387f71e68646a7/setup.py'"'"'; file='"'"'/tmp/pip-install-j9rv61td/detectron2_679fb568038548bf8b387f71e68646a7/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-t9fgp6nd/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.8/detectron2 Check the logs for full command output.

executor failed running [/bin/sh -c pip3 install layoutparser torchvision && pip install "git+https://github.com/facebookresearch/[email protected]#egg=detectron2"]: exit code: 1`

Can you advise what I am doing wrong an how I can go about resolving it?

solidHeroLink avatar Nov 09 '21 16:11 solidHeroLink