安装polyglot出现的错误
Posted harp-yestar
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了安装polyglot出现的错误相关的知识,希望对你有一定的参考价值。
系统环境ubuntu python3.6
pip3 install polyglot
运行错误:
import polyglot from polyglot.text import Text, Word
ICU_VERSION = subprocess.check_output((‘icu-config’, ‘–version’)).strip()
Error 1 :No module named ‘icu’
---> 11 from icu import Locale 12 import pycld2 as cld2 ModuleNotFoundError: No module named ‘icu‘
解决方法:
[root@master]# pip3 install pyicu
Error 2: installing pip pyicu
# 解决
sudo apt install libicu-dev #or yum install libicu-dev
Error 3:No module named ‘pycld2‘ No module named ‘morfessor‘
# 解决
pip3 install pycld2 pip3 install morfessor
Error 4: No module named ‘_bz2’
from _bz2 import BZ2Compressor, BZ2Decompressor ModuleNotFoundError: No module named ‘morfessor‘ ModuleNotFoundError: No module named ‘_bz2‘
# 解决
[root@7-o-1 ~]# cd /usr/local/lib/python3.6/lib-dynload/ wget https://github.com/LockeyCheng/packages/blob/master/_bz2.cpython-36m-x86_64-linux-gnu.so [root@7-o-1 lib-dynload]# chmod u+x _bz2.cpython-36m-x86_64-linux-gnu.so
以上是关于安装polyglot出现的错误的主要内容,如果未能解决你的问题,请参考以下文章
调用 onCreateView() 之前出现“找不到片段 id 的视图”错误
连接MySQL出现错误:ERROR 1045 (28000): Access denied for user ‘root‘@‘localhost‘ (using password: YES)(代码片段