本文介绍了错误:尝试使用pip安装pocketsphinx时,pocketsphinx的构建轮失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试安装 pocketsphinx 并收到以下错误:
I'm trying to install pocketsphinx and get following error:
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
推荐答案
sudo apt-get install -qq python python-dev python-pip build-essential swig git libpulse-dev libasound2-dev
这篇关于错误:尝试使用pip安装pocketsphinx时,pocketsphinx的构建轮失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!