4

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

2 Answers 2

4

You can use pipwin to install it without any issues.

  • Install pipwin [Run as Administrator, if any issues]

pip install pipwin

  • Install pocketsphinx using pipwin

pipwin install pocketsphinx

Note: Works on Windows-10(win32-py3.8) [Tested]

Sign up to request clarification or add additional context in comments.

Comments

3

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

5 Comments

how abstruse :(
Unfortunately, Windows is not every developer-friendly, so even if I or someone else had posted a step-by-step solution here, it would have quickly become outdated as SWIG is in rapid development. This may change though as we see Windows adopt Linux culture more and more.
Hopefully. Because for this project I'm stuck with this Windows environment sadly.
@JeromeJ What's your problem? Did you follow the link I provided?
That was probably on my end. This linked helped me fixing my problem: stackoverflow.com/a/36785608/1524913 (now i have another one but it isn't Swig)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.