Python 使用命令时出错";从polyglot.detect导入检测器;
我在玩polyglot函数,将文本从一种语言转换为另一种语言,比如西班牙语到英语 我按照说明安装Polyglot和所需的模块 但是在运行代码时Python 使用命令时出错";从polyglot.detect导入检测器;,python,polyglot,Python,Polyglot,我在玩polyglot函数,将文本从一种语言转换为另一种语言,比如西班牙语到英语 我按照说明安装Polyglot和所需的模块 但是在运行代码时 来自polyglot.detect导入检测器 我得到这个错误: 回溯(最近一次呼叫最后一次): 文件“”,第1行,在 从polyglot.detect导入检测器 文件“C:\Python34\lib\site packages\polyglot-15.5.2-py3.4.egg\polyglot\detect\\ uuu init\uuu.py”,第1
来自polyglot.detect导入检测器
我得到这个错误:
回溯(最近一次呼叫最后一次):
文件“”,第1行,在
从polyglot.detect导入检测器
文件“C:\Python34\lib\site packages\polyglot-15.5.2-py3.4.egg\polyglot\detect\\ uuu init\uuu.py”,第1行,在
from.base导入检测器,语言
文件“C:\Python34\lib\site packages\polyglot-15.5.2-py3.4.egg\polyglot\detect\base.py”,第11行,在
来自icu导入区域设置:没有名为“icu”的模块
我不确定我需要做什么
有人能帮忙吗?您需要安装
您需要使用以下命令安装库polyglot、PyICU和pycld2:
pip install polyglot
pip install PyICU
pip install pycld2
检查应安装的另一个软件包是否为
pip install morfessor
pip install polyglot
pip install PyICU
pip install pycld2