我是python的初学者,正在玩多语言功能,将文本从一种语言转换为另一种语言,如西班牙语到英语.
我按照说明安装了Polyglot和所需的模块.
但是在运行命令"from polyglot.detect import Detector"时,我收到任何错误
回溯(最近一次调用最后一次):文件"",第1行,来自polyglot.detect导入检测器文件"C:\ Python34\lib\site-packages\polyglot-15.5.2-py3.4.egg\polyglot\detect__init__ .py",第1行,来自.base import Detector,语言文件"C:\ Python34\lib\site-packages\polyglot-15.5.2-py3.4.egg\polyglot\detect\base.py",line 11,来自icu import Locale ImportError:没有名为'icu'的模块
不知道我需要做什么.
有人可以帮忙吗?
Pri*_*pta 11
您需要使用以下命令安装库 polyglot、PyICU 和 pycld2:
pip install polyglot
pip install PyICU
pip install pycld2
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
3543 次 |
| 最近记录: |