'"ImportError: symbol not found in flat namespace" for polyglot.text

I want to use polyglot to analyze a French text. The libraries polyglot & pyicu are installed. To start with the Text and import, I get this error:

import polyglot
from polyglot.text import Text
ImportError: dlopen(/Users/user/opt/anaconda3/lib/python3.8/site-packages/_icu.cpython-38-darwin.so, 0x0002): symbol not found in flat namespace '__ZN6icu_5818AnnualTimeZoneRule8MAX_YEARE'

Using MacOs 12.1 - Vs Code anaconda



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source