ubuntu - 错误 : Failed building wheel for pocketsphinx while trying to install pocketsphinx with pip

标签 ubuntu gcc pip pocketsphinx

我正在尝试安装 pocketsphinx 并出现以下错误:

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

最佳答案

Ubuntu installation requirements :

sudo apt-get install -qq python python-dev python-pip build-essential swig git libpulse-dev libasound2-dev

关于ubuntu - 错误 : Failed building wheel for pocketsphinx while trying to install pocketsphinx with pip,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56332102/

相关文章:

php - postfix 在 Ubuntu 15.04 中不发送邮件

ubuntu -/root/在 Windows 10 Ubuntu 上的位置

python - 在 azure 中的 pip 上安装 _mysql 模块时出现问题

python - Jaxlib pip 安装失败

c - 使用 C (Ubuntu) 的套接字编程中的段错误

Eclipse 3.8.1 - 从项目 View 中隐藏外部 jar

c - 用数组填充数组?

c - C 中的引用计数和函数内部分配的内存

c++ - 在c++中的macOS Catalina上编译 header 和cpp文件的问题

python - pip - 安装子依赖项会覆盖 requirements.txt 上的其他包