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

前端 未结 8 1357
-上瘾入骨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条回答
  • 2020-12-19 01:16
    conda install swig
    pip install pocketsphinx
    

    I didn't want to do all that setup other people are suggesting so I tried this and it worked. This probably only works if you are using Anaconada though.

    0 讨论(0)
  • 2020-12-19 01:17

    Instead of copying Swig files to the Python folder, you can simply add Swig`s location to the environment variables:

    1. Press Ctrl+S
    2. Type env and press Enter
    3. Double click on Path
    4. Add the path-to-Swig to the last blank line
    5. Click OK and restart your PC
    0 讨论(0)
提交回复
热议问题