繁体   English   中英

无法在macOS High Sierra 10.13.6上安装Polyglot

[英]Unable to install polyglot on macOS High Sierra 10.13.6

我尝试通过pip install polyglot ,出现以下错误:

Collecting polyglot
  Using cached https://files.pythonhosted.org/packages/e7/98/e24e2489114c5112b083714277204d92d372f5bbe00d5507acf40370edb9/polyglot-16.7.4.tar.gz
Requirement already satisfied: futures>=2.1.6 in /usr/local/lib/python2.7/site-packages (from polyglot) (3.1.1)
Collecting PyICU>=1.8 (from polyglot)
  Using cached https://files.pythonhosted.org/packages/c2/15/0af20b540c828943b6ffea5677c86e908dcac108813b522adebb75c827c1/PyICU-2.2.tar.gz
    Complete output from command python setup.py egg_info:

    Building PyICU 2.2 for ICU 63

    Could not configure CXXFLAGS with icu-config
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/private/var/folders/20/4xrrmj050z10rqhlfn348q0m0000gn/T/pip-install-ZnSq3A/PyICU/setup.py", line 131, in <module>
        _cflags, ('--cxxflags', '--cppflags'), 'CXXFLAGS')
      File "/private/var/folders/20/4xrrmj050z10rqhlfn348q0m0000gn/T/pip-install-ZnSq3A/PyICU/setup.py", line 30, in configure_with_icu_config
        output = check_output(('icu-config',) + config_args).strip()
      File "/usr/local/Cellar/python/2.7.12_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 567, in check_output
        process = Popen(stdout=PIPE, *popenargs, **kwargs)
      File "/usr/local/Cellar/python/2.7.12_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 711, in __init__
        errread, errwrite)
      File "/usr/local/Cellar/python/2.7.12_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1343, in _execute_child
        raise child_exception
    OSError: [Errno 2] No such file or directory

尝试安装PyICU时出现完全相同的错误。 请帮忙!

最终我在这里找到了解决方案: https : //github.com/ovalhub/pyicu/issues/70#issuecomment-422806676

如果仍然收到./common.h:86:10: fatal error: 'unicode/utypes.h' file not found错误,请查看https://github.com/Homebrew/legacy-homebrew/issues/34170#也是issuecomment-63192387

暂无
暂无

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

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