安装polyglot出错

安装polyglot出错

错误
Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-w4Rmuu/PyICU/setup.py", line 53, in <module>
        ''')
    RuntimeError:
    Please set the ICU_VERSION environment variable to the version of
    ICU you have installed.
解决

在Mac上

brew install icu4c
brew link icu4c

在centos上

yum install -y libicu-devel

若用docker打包centos上还可能提示下面错误

Rpmdb checksum is invalid: dCDPT(pkg checksums): libicu.x86_64 0:50.1.2-15.el7 - u

解决方式为:

RUN rpm --rebuilddb 
    && yum install -y libicu-devel
参考
原文地址:https://www.cnblogs.com/wswang/p/9391255.html