Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error installing pip pyicu

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!

like image 629
Eric Agredo Avatar asked Dec 02 '16 20:12

Eric Agredo


1 Answers

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 
like image 186
MUNGAI NJOROGE Avatar answered Sep 21 '22 16:09

MUNGAI NJOROGE