pip安装pocketsphinx出现的问题

2020-03-17  本文已影响0人  Toplhyi

使用pip安装pocketsphinx

pip install pocketsphinx

出现错误:
    fatal error: alsa/asoundlib.h: 没有那个文件或目录
     #include <alsa/asoundlib.h>
                                ^
    compilation terminated.
    error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

在网站搜索asoundlib.h
https://packages.ubuntu.com/search?mode=filename&suite=trusty&section=all&arch=any&keywords=asoundlib.h&searchon=contents

深度截图_选择区域_20200304201215.png
所以,安装libasound2-dev
sudo apt install libasound2-dev

重新使用pip安装pocketsphinx,问题解决。

上一篇 下一篇

猜你喜欢

热点阅读