首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >为pocketsphinx生成轮子失败

为pocketsphinx生成轮子失败
EN

Stack Overflow用户
提问于 2018-06-11 11:10:39
回答 1查看 1.4K关注 0票数 2

(Macosx)我一直在尝试使用pip install textract安装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相对较新,所以语言越简单越好。

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

代码语言:javascript
复制
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
EN

回答 1

Stack Overflow用户

发布于 2020-09-11 22:28:46

我遇到这个问题是因为我试图从开发者站点手动安装swig。运行"brew install swig glpk“代替为我修复它。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/50790056

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档