简体   繁体   English

在mac上安装pyicu; 找不到-licule的库

[英]install pyicu on mac; library not found for -licule

I having some difficulties to install pyicu in my mac. 我在mac中安装pyicu有些困难。 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. pyicu 58.1刚刚在自制软件中发布,它缺少libicule,pip需要libicule来编译pyicu。 Till this problem is fixed you can downgrade to pyicu 57.1. 直到这个问题得到解决,你可以降级到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. 我没有尝试过自己,但应该工作,如果没有,请告诉我,我会尽力确保它在我的机器上运行。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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