pyicu安装

问题:安装CTFD时,有个pyicu的库,老是报错,网上查了,无解

Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File “”, line 1, in
File “/tmp/pip-install-k4qyIi/pyicu/setup.py”, line 53, in
‘’’)
RuntimeError:
Please set the ICU_VERSION environment variable to the version of
ICU you have installed.

----------------------------------------

Command “python setup.py egg_info” failed with error code 1 in /tmp/pip-install-k4qyIi/pyicu/

最后查看pyicu的github里面有个提示:

https://github.com/ovalhub/pyicu

Building PyICU
Before building PyICU the ICU libraries must be built and installed. Refer to each system’s instructions for more information.

PyICU is built with distutils or setuptools:

verify that the icu-config program is available or that the INCLUDES, LFLAGS, CFLAGS and LIBRARIES dictionaries in setup.py contain correct values for your platform. Starting with ICU 60, -std=c++11 must appear in your CFLAGS.
python setup.py build
sudo python setup.py install

最终解决方案

wget http://download.icu-project.org/files/icu4c/63.1/icu4c-63_1-Fedora28-x64.tgz

tar zxvf icu4c-63_1-Fedora28-x64.tgz
cd icu/usr/local/
cp -r * /usr/local/
pip install pyicu

Successfully installed pyicu-2.2

  • 2
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值