当前位置: 代码迷 >> 综合 >> 【Python】安装Pocketsphinx 时报错:error: command ‘swig.exe‘ failed: No such file or directory 解决
  详细解决方案

【Python】安装Pocketsphinx 时报错:error: command ‘swig.exe‘ failed: No such file or directory 解决

热度:0   发布时间:2024-02-25 01:55:41.0

在网上试了很多种方法,比如下载swig 安装包,解压配置环境变量之类的,试了好几个解压路径然后配置都不对,气呼呼!!!

最后,尝试了用conda来安装,超级开心!

因此,下面这种方法仅限于安装了anaconda的用户有效,且不一定100%有效,下面就开始吧

两个命令

conda install swig

安装完成,然后接着安装Pocketsphinx

pip install pocketsphinx


太开心啦!!

 

  相关解决方案