Swig not found when installing pocketsphinx Python

大兔子大兔子 提交于 2019-11-28 04:33:26

问题


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.

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


回答1:


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



来源:https://stackoverflow.com/questions/33745389/swig-not-found-when-installing-pocketsphinx-python

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!