Installing pocketsphinx python module: command 'swig.exe' failed

前端 未结 8 1505
-上瘾入骨i
-上瘾入骨i 2020-12-19 00:40

I\'m getting something like this. Can anyone please tell me how to fix this.

C:\\Users\\krush\\Documents\\ML using Python>pip install pocketsphinx
Collect         


        
8条回答
  •  旧时难觅i
    2020-12-19 01:06

    To fix the problem, I downloaded swig for windows

    1. Copy swig.exe to the python installation folder (for ex C:/python27)

    2. Open swigwin-3.0.12/Lib folder and copy all *.swg files to the C:/python27/lib or equivalent python path

    3. Open swigwin-3.0.12/lib/python and copy all the files to (C:/python27/lib)

    (Also make sure you have Microsoft Visual C++ Compiler for Python installed)

    These steps worked for me.

提交回复
热议问题