口袋狮身人面像的建造***失败

Posted

技术标签:

【中文标题】口袋狮身人面像的建造***失败【英文标题】:failed building wheel for pocketsphinx 【发布时间】:2018-06-11 03:10:39 【问题描述】:

(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来说相对较新,所以语言越简单越好。

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

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

【问题讨论】:

它说你安装swig有问题,你应该向原作者报告。 【参考方案1】:

我遇到这个问题是因为我尝试从开发者网站手动安装 swig。运行“brew install swig glpk”而不是为我修复它。

【讨论】:

以上是关于口袋狮身人面像的建造***失败的主要内容,如果未能解决你的问题,请参考以下文章

澪ultimate版本下载失败

如果SonarQube失败质量门,则VSTS构建失败

vs2017中的“CL”任务意外失败

为啥金字塔要造在埃及首都开罗西南面的金黄色的沙漠中呢?

为什么`vagrant up`会失败“ifdown eth1”SSH测试?

元类不工作的狮身人面像自动类