Error installing pip pyicu

后端 未结 8 2028
独厮守ぢ
独厮守ぢ 2020-12-24 13:51

I have been trying to install musicbrainz server on my mac and there is a step where I have to install pip pyicu. I keep getting this error:

Collecting pyicu         


        
8条回答
  •  无人及你
    2020-12-24 14:29

    for me to get it works:

    1) install icu4c with brew:

    brew install icu4c
    brew link icu4c --force
    

    2) check the version:

    ls /usr/local/Cellar/icu4c/
    

    it prompts something like: 64.2

    3) execute bellow commands with substitution of proper version from previous step (first line only integer part, second and third line with decimal part):

    export ICU_VERSION=64
    export PYICU_INCLUDES=/usr/local/Cellar/icu4c/64.2/include
    export PYICU_LFLAGS=-L/usr/local/Cellar/icu4c/64.2/lib
    

    4) finally install python package for pyicu:

    pip install pyicu --upgrade
    

    IF YOU FAIL with above (happen already to me on OS X 10.15) you may need:

    brew install pkg-config
    
    export PYICU_CFLAGS=-std=c++11:-DPYICU_VER='"2.3.1"'
    

提交回复
热议问题