我正在使用多语言功能将文本从一种语言转换为另一种语言,例如西班牙语到英语。
我按照说明安装 Polyglot 和所需的模块。
但是在运行代码时
from polyglot.detect import Detector
我收到此错误:
Traceback (most recent call last):
File "<pyshell#8>", line 1, in <module>
from polyglot.detect import Detector
File "C:\Python34\lib\site-packages\polyglot-15.5.2-py3.4.egg\polyglot\detect\__init__.py", line 1, in <module>
from .base import Detector, Language
File "C:\Python34\lib\site-packages\polyglot-15.5.2-py3.4.egg\polyglot\detect\base.py", line 11, in <module>
from icu import Locale ImportError: No module named 'icu'
我不确定我需要做什么。
有人可以帮忙吗?