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'.
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