polyglot-pyicu 安装
当我们下载完polyglot模块 导入模块时 from polyglot . text import Text 会出现错误如下 ModuleNotFoundError: No module named 'icu' 直接 pip install pyicu -i https://pypi.douban.com/simple/ 我们可能会遇到这样的一个报错 RuntimeError : Please install pkg - config on your system or set the ICU_VERSION environment variable to the version of ICU you have installed . 我们可以到 pyicu 下载网站 找到自己对应的python版本和window版本下载 下载后进入对应下载的文件夹里使用pip install安装,此处以我的路径为例 pip install C : \Users\Cable - Ching\Desktop\PyICU - 2.4 .2 - cp37 - cp37m - win_amd64 . whl 安装后导入正常 from polyglot . text import Text 来源: CSDN 作者: 码奋 链接: https://blog.csdn.net/qq_43060552