I'm trying to install & run Polyglot on Ubuntu 20.04. I'm using a venv
.
I installed all requirements locally using requirements.txt
and I installed numpy
using pip
.
When I try to run a simple test script with Polyglot, this error occurs:
Traceback (most recent call last):
File "/scratches/scratch_16.py", line 1, in <module>
from polyglot.detect import Detector
File "/venv/lib/python3.8/site-packages/polyglot/detect/__init__.py", line 1, in <module>
from .base import Detector, Language
File "/venv/lib/python3.8/site-packages/polyglot/detect/base.py", line 11, in <module>
from icu import Locale
File "/venv/lib/python3.8/site-packages/icu/__init__.py", line 37, in <module>
from _icu import *
ImportError: libicui18n.so.58: cannot open shared object file: No such file or directory