Failed to install icu via pip under Mac.
Solution and reason
The cause of the problem is that a certain line of code in the icu library cannot find a file and cannot get
# 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' # 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/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
- Mac installation tree command error solution
- How to Solve ModuleNotFoundError: No module named ‘_bz2‘
- [Solved] The Ruby zlib extension was not compiled
- Mac Pyaudio Installation fatal error: ‘portaudio.h‘ file not found
- [Solved] Import gensim Error: RuntimeError: Cython extensions are unavailable.
- Cocoapods Install ERROR: Error installing cocoapods: ERROR: Failed to build gem native extension.
- How to Solve QT and PCIe interactive loading setupapi.H error
- Centos pip install uwsgi error: “fatal error: Python.h: No such file or directory”
- How to Solve Cocoapods Installation Failure
- [Solved] Virtualenvwrapper.sh error: There was a problem running the initialization hooks.
- [Solved] ESP32 Error: error: expected initializer before ‘__result_use_check‘
- How to Fix Common Arcpy Error
- [Solved] Error d8021: invalid numeric parameter “/wno CPP” cython_bbox
- [How to Fix]Unable to find the requested Boost libraries
- How to Solve Error: Module did not self-register
- Error: a JNI error has occurred, please check your installation and try again
- [Solved] Mac Cmake Complie openmp Error: fatal error: ‘omp.h‘ file not found
- [Solved] Installing github.com/uudashr/gopkgs/v2/cmd/[email protected] FAILED和cannot install, GOBIN must be an ab
- PIP Fatal error in launcher: Unable to create process using
- Cocoapods Upgrade Error: ffi * * * * [How to Solve]