我在我的mac上安装pyicu有一些困难。我首先遇到了this问题,那就是我解决了。但现在安装程序给出了以下错误:
ld: library not found for -licule那么,这个licule是哪个库呢?
发布于 2016-11-06 16:44:19
pyicu 58.1是在自制软件中刚刚发布的,它缺少libicule,pip需要libicule来编译pyicu。在这个问题解决之前,你可以降级到pyicu 57.1。为此,您可以执行以下操作:
brew remove icu4c
cd /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core
git checkout 1e62c645b2fc2d82042d9f7c364c6a246f2e11ed Formula/icu4c.rb #this is the latest commit with 57.1 I guess based on git log.
brew install icu4c
brew link --force icu4c然后
pip install pyicu我没有试过,但应该可以工作,如果它没有,让我知道,我会努力确保它在我的机器上运行。
https://stackoverflow.com/questions/40425909
复制相似问题