首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >错误:尝试使用pip安装pocketsphinx时,为pocketsphinx构建轮子失败

错误:尝试使用pip安装pocketsphinx时,为pocketsphinx构建轮子失败
EN

Stack Overflow用户
提问于 2019-05-28 04:25:40
回答 2查看 1.8K关注 0票数 2

我正在尝试安装pocketsphinx,并得到以下错误:

代码语言:javascript
复制
jandornhege@JanDornhegeUbuntu:~/Hermes/Basefunktions$ pip install pocketsphinx
Collecting pocketsphinx
  Using cached https://files.pythonhosted.org/packages/cd/4a/adea55f189a81aed88efa0b0e1d25628e5ed22622ab9174bf696dd4f9474/pocketsphinx-0.1.15.tar.gz
Building wheels for collected packages: pocketsphinx
  Building wheel for pocketsphinx (setup.py) ... error
  ERROR: Complete output from command /home/jandornhege/anaconda3

.....

  deps/sphinxbase/src/libsphinxad/ad_pulse.c:44:10: fatal error: pulse/pulseaudio.h: Datei oder Verzeichnis nicht gefunden
   #include <pulse/pulseaudio.h>
            ^~~~~~~~~~~~~~~~~~~~
  compilation terminated.
  error: command 'gcc' failed with exit status 1
  ----------------------------------------
  ERROR: Failed building wheel for pocketsphinx
EN

回答 2

Stack Overflow用户

发布于 2019-05-28 06:10:15

Ubuntu installation requirements

代码语言:javascript
复制
sudo apt-get install -qq python python-dev python-pip build-essential swig git libpulse-dev libasound2-dev
票数 5
EN

Stack Overflow用户

发布于 2019-06-25 02:11:27

这种情况很常见。尝试:

代码语言:javascript
复制
sudo apt-get install pulseaudio swig libpulse-dev

这三个就是我经常看不到的。如果仍然出现错误,请尝试安装@phd提到的其他包。

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

https://stackoverflow.com/questions/56332102

复制
相关文章

相似问题

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