简体   繁体   中英

install pyicu on mac; library not found for -licule

I having some difficulties to install pyicu in my mac. I first had this problem, that is I solved. But now the instalation is giving the following error:

ld: library not found for -licule

So, which library is this licule?

pyicu 58.1 is just released in homebrew and it lacks libicule, pip needs libicule to compile pyicu. Till this problem is fixed you can downgrade to pyicu 57.1. To do so you can do this:

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

and then

pip install pyicu

I didn't try above myself but should work, let me know if it didn't and I'll try to make sure it runs on my machine.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM