pocketphinx建造轮子失败

时间:2018-06-11 03:10:39

标签: python macos swig pocketsphinx

Macosx)我一直在尝试使用textract安装pip install textract,但我收到以下错误消息。我已经安装了pocketsphinxswig。我也不知道有关requests 2.18.4 has requirement chardet<3.1.0,>=3.0.2, but you'll have chardet 2.3.0 which is incompatabile

的消息

如果有人可以告诉我这意味着什么以及如何继续安装textract,我真的很感激。 python比较新,所以语言越简单就越好。

以下是我认为的相关错误消息:

Failed building wheel for pocketsphinx
  Running setup.py clean for pocketsphinx
Failed to build pocketsphinx
requests 2.18.4 has requirement chardet<3.1.0,>=3.0.2, but you'll have chardet 2.3.0 which is incompatible.
Installing collected packages: pocketsphinx, textract
  Found existing installation: pocketsphinx 0.1.15
    Uninstalling pocketsphinx-0.1.15:
      Successfully uninstalled pocketsphinx-0.1.15
  Running setup.py install for pocketsphinx ... error
    Complete output from command /anaconda3/bin/python -u -c "import setuptools, tokenize;__file__='/private/var/folders/d8/hyzy1y7s4sd46jxz4chrhfcc0000gn/T/pip-install-dn569xpj/pocketsphinx/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /private/var/folders/d8/hyzy1y7s4sd46jxz4chrhfcc0000gn/T/pip-record-j1sxbma0/install-record.txt --single-version-externally-managed --compile:
    running install
    running build_ext
    building 'sphinxbase._ad' extension
    swigging swig/sphinxbase/ad.i to swig/sphinxbase/ad_wrap.c
    swig -python -modern -Ideps/sphinxbase/include -Ideps/sphinxbase/include/sphinxbase -I/System/Library/Frameworks/OpenAL.framework/Versions/A/Headers -Ideps/sphinxbase/include/android -Ideps/sphinxbase/swig -outdir sphinxbase -o swig/sphinxbase/ad_wrap.c swig/sphinxbase/ad.i
    dyld: Library not loaded: @rpath/libpcre.1.dylib
      Referenced from: /usr/local/bin/swig
      Reason: image not found
    error: command 'swig' terminated by signal 6

1 个答案:

答案 0 :(得分:0)

我遇到这个问题是因为我尝试从开发人员站点手动安装swig。运行“ brew install swig glpk”来代替它。