$ pip install layoutparser
[…]
import distutils.core
ModuleNotFoundError: No module named 'distutils'
That makes sense, because distutils has been removed from python as per PEP 632. It would appear setuptools is a dependency, so I installed that and retried.
$ pip install setuptools
[…]
Successfully installed setuptools-70.2.0
$ pip install layoutparser
[…]
AttributeError: module 'pkgutil' has no attribute 'ImpImporter'. Did you mean: 'zipimporter'?
Describe the bug
I am attempting to install under Alpine Linux.
That makes sense, because
distutils
has been removed from python as per PEP 632. It would appearsetuptools
is a dependency, so I installed that and retried.Here's the traceback.
Checklist
To Reproduce Steps to reproduce the behavior:
pip install layoutparser
.Environment
Error traceback https://paste.rs/11Fje