安装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
参考

相关文章:

  • 2021-04-10
  • 2021-10-10
  • 2021-09-06
  • 2021-11-05
  • 2021-08-19
  • 2021-12-10
  • 2021-11-02
猜你喜欢
  • 2022-12-23
  • 2021-05-21
  • 2021-09-18
  • 2021-08-29
  • 2022-01-14
  • 2021-04-04
  • 2021-07-22
相关资源
相似解决方案