Error installing pip pyicu

install pyicu mac
pyicu github
could not configure cflags with icu-config
pip install pyicu error mac
symbol not found: __zn6icu_648bytesink15getappendbuffereiipcipi
polyglot windows 7
python libraries download
python wheels

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
Downloading PyICU-1.9.5.tar.gz (181kB)
100% |████████████████████████████████| 184kB 515kB/s 
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/private/tmp/pip-build-E50o2C/pyicu/setup.py", line 11, in <module>
    ICU_VERSION = subprocess.check_output(('icu-config', '--version')).strip()
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 566, in check_output
    process = Popen(stdout=PIPE, *popenargs, **kwargs)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 710, in __init__
    errread, errwrite)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1335, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory

----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /private/tmp/pip-build-E50o2C/pyicu/

I have tried downloading ez_setup.py and doing python ez_setup.py. I have upgraded the setuptools and downloaded those separately as well. I am not sure what else there is to try. Please help!


I was facing this issue on my mac when trying to install polyglot (pyicu is needed for polyglot). The following resolved this for me.

# Install icu
brew install icu4c

# check newest version
ls /usr/local/Cellar/icu4c/

# Edit pyicu installer to work
git clone https://github.com/ovalhub/pyicu.git

# edit setup.py not to query for the version, i.e. change
# ICU_VERSION = subprocess.check_output(('icu-config', '--version')).strip()
# to whatever your version is, e.g.
# ICU_VERSION = '57.1'

# Install pyicu
env LDFLAGS=-L/usr/local/opt/icu4c/lib CPPFLAGS=-I/usr/local/opt/icu4c/include DYLD_LIBRARY_PATH=-L/usr/local/opt/icu4c/lib python setup.py build
env LDFLAGS=-L/usr/local/opt/icu4c/lib CPPFLAGS=-I/usr/local/opt/icu4c/include DYLD_LIBRARY_PATH=-L/usr/local/opt/icu4c/lib sudo python setup.py install

# Change DYLD_LIBRARY_PATH (not sure if req'd)
DYLD_LIBRARY_PATH=/usr/local/Cellar/icu4c/{version, e.g. 57.1}/:$DYLD_LIBRARY_PATH
echo $DYLD_LIBRARY_PATH

# Icu works now from python, and you can proceed with polyglot
$ python
>>> import icu
$ pip install polyglot
$ python
>>> import polyglot

Unable to install pyicu with pip in python3 · Issue #99 · ovalhub , OS: OSX 10.14.2 Python Version 3.7.3 $ pip install PyICU Collecting PyICU Command "python setup.py egg_info" failed with error code 1 in  You've probably not installed ICU. All PyICU does is create bindings for the ICU C library; you need to have installed that and its associated development files before installing PyICU: apt install libicu-dev.


I faced this issue on ubuntu 14.04 and 16.04. To fix this issue, install libicu-dev then try installing again. I did

$sudo apt install libicu-dev
$pip install pyicu

Install from Pip3(and pip) failed. · Issue #29 · ovalhub/pyicu · GitHub, pip3 install pyicu Collecting pyicu Using cached PyICU-1.9.3.tar.gz Building wheels for --compile" failed with error code 1 in /tmp/pip-build-rbi2xozh/pyicu/. My system is Windows 10 x64. Now I would like to install pyicu but I encounter with a problem like this. Collecting pyicu Using cached PyICU-1.9.7.tar.gz Complete output from command python setup.py egg_info: Traceback (most recent call last): File "C:\Users\ANHVU\AppData\Local\Temp\pip-build-v5fb9ri4\pyicu\setup.py", line 12, in ICU_VERSION = os.environ['ICU_VERSION'] File "C:\Users\ANHVU


Below solution is for MAC OSX only-

try installing pyICU using brew:

brew install icu4c

if it says that it's already installed and just need to be linked, then try this:

brew link icu4c

This create relative symlinks in "/usr/local/Cellar/icu4c/..."

PyICU · PyPI, pip install PyICU Before building PyICU the ICU libraries must be built and installed. The C++ ICU library does not use C++ exceptions to report errors. This is what I get when reunning sudo pip install -U setuptools: The directory '/Users/Name/Library/Caches/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.


Following solution worked for me on OSX:

# Install ucu4c via Brew
brew install icu4c

# Create relative symlinks for icu4c
brew link --force icu4c

# Install pyicu via pip
# Make sure ICU_VERSION matches the one you just installed
sudo ICU_VERSION=60.2 pip install pyicu

pip install icu failed: Command "python setup.py egg_info" failed , pip install icu failed: Command "python setup.py egg_info" failed with error code 1 in Edit pyicu installer to work. git clone https://github.com/ovalhub/pyicu.git. 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


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"'

Getting started with pyicu on Mac – Leo's tech notes and scribbles, However, simply calling pip install pyicu will likely result in an error: # pip install pyicu Collecting pyicu Downloading PyICU-1.9.8.tar.gz (183kB)  PIP installation is not added to the system variable – In order to be able to run Python commands from a CMD window, you will need to add the path of your PiP installation to your PATH in the system variable. If you installed Python using the installation executable, it should be added automatically.


Install Polyglot on Windows, pip install PyICU‑2.3.1‑cp36‑cp36m‑win_amd64.whl. Great! No if we try to import our package it sends another error saying that pycld2  Hello @alex2304 it may be true that it is more tested on linux, but for me it's quite strange that "readme_file.read()" tries to use cp1252 to read the file. The standard python configuration should always use utf-8.


[Gramps-devel] Why is Travis CI unable to import coverage and pyicu?, Python3 >> > >> > Currently, all of the items installed with pip in .travis.yml are problems, but I couldn't get newer packages (pyicu, > coverage, pip) to install  # Install ucu4c via Brew brew install icu4c # Create relative symlinks for icu4c brew link --force icu4c # Install pyicu via pip # Make sure ICU_VERSION matches the one you just installed sudo ICU_VERSION = 60.2 pip install pyicu


python - Error al instalar pip pyicu, Estaba enfrentando este problema en mi mac al intentar instalar polyglot (se necesita pyicu para polyglot). Lo siguiente resolvió esto para mí. # Install icu brew  pip install pycld2-0.31-cp36-cp36m-win_amd64.whl pip install PyICU-1.9.8-cp36-cp36m-win_amd64.whl 👍 12 janissl mentioned this issue Jan 2, 2018