安装pocketsphinx Python时找不到Swig [英] Swig not found when installing pocketsphinx Python

查看:61
本文介绍了安装pocketsphinx Python时找不到Swig的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将字素转换为音素.我想 pip install pocketsphinx 来做到这一点.它的一个依赖是 swig,所以我下载了它并将其放在一个目录中,然后转到环境路径变量并添加通向 swig.exe 的路径.当我 cmd 并输入 'swig --help' 时,它似乎工作正常.

I would like to convert grapheme to phoneme. And I want to pip install pocketsphinx to do that. One of its dependency is swig, so I downloaded and placed it in a directory and go to the environment path variable and add the path that leads to swig.exe. When I cmd and type 'swig --help' it seems to be working.

但是当我去'pip install pocketsphinx 时,它说'错误:命令'swig.exe 失败:没有这样的文件或目录'.

But when I go 'pip install pocketsphinx, it says 'error: command 'swig.exe failed: No such file or directory'.

推荐答案

你应该 在 Visual Studio 中设置 swig 而不是在 %PATH% 中包含它的路径.

You should setup swig in Visual Studio instead of including its path in %PATH%.

这篇关于安装pocketsphinx Python时找不到Swig的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆