我正在尝试安装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
如果有人对我可以做什么有任何提示,请告诉我
答案 0 :(得分:2)
Ubuntu installation requirements:
sudo apt-get install -qq python python-dev python-pip build-essential swig git libpulse-dev libasound2-dev
答案 1 :(得分:0)
这很常见。试试:
sudo apt-get install pulseaudio swig libpulse-dev
这三个是我常见的失踪人员。如果仍然出现错误,请尝试安装@ phd提到的其他软件包。