【问题标题】:ERROR: Failed building wheel for pocketsphinx while trying to install pocketsphinx with pip错误:尝试使用 pip 安装 pocketsphinx 时无法为 pocketsphinx 构建轮子
【发布时间】:2019-05-27 20:25:40
【问题描述】:

我正在尝试安装 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 gcc pip pocketsphinx


    【解决方案1】:

    Ubuntu installation requirements:

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

    【讨论】:

      【解决方案2】:

      这很常见。试试:

      sudo apt-get install pulseaudio swig libpulse-dev
      

      这三个是我经常看到的缺失的。如果您仍然收到错误,请尝试安装@phd 提到的其他软件包。

      【讨论】:

        猜你喜欢
        • 2023-02-06
        • 1970-01-01
        • 1970-01-01
        • 2016-04-04
        • 2011-05-29
        • 2020-08-02
        • 2021-05-23
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多