ubuntu - 错误:尝试使用 pip 安装 pocketsphinx 时无法为 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
解决方案
sudo apt-get install -qq python python-dev python-pip build-essential swig git libpulse-dev libasound2-dev
推荐阅读
- python - 无法同时抓取字符串和列表
- javascript - React单选按钮:选中的循环未对齐
- html - 选择单选按钮后显示面板
- android - 使用 BottomNavigation 的 NavController 目的地未知
- node.js - 高图表导出服务器不显示图例 LabelFormatter
- c++ - 优化从子位掩码生成父位掩码
- node.js - 节点 js:sendgrid '访问被禁止'
- android - 在 Android 上使用 Yahoo 进行 Firebase 身份验证
- arrays - 如何从 Angular 数据库中的 ASP.NET Core API 下载和保存 pdf 文件?
- java - 使用 Vaadin 14 的 RTL 支持