Swig not found when installing pocketsphinx Python

2020-02-12 11:55发布

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条回答
Juvenile、少年°
2楼-- · 2020-02-12 12:09

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

查看更多
登录 后发表回答