sudo apt-get install -y swig libpulse-dev
pip install pocketsphinx
Down load swig for windows (https://netix.dl.sourceforge.net/project/swig/swigwin/swigwin-3.0.12/swigwin-3.0.12.zip)
Copy swig.exe to the python installation folder (for ex C:/python27)
Open the swigwin-3.0.12/Lib folder and copy all *.swg files to the C:/python27/Lib or equivalent python path
Open swigwin-3.0.12/Lib/python and copy all the files to C:/python27/Lib
Open the swigwin-3.0.12/Lib folder and copy over the typemaps folder to C:/python27/Lib
Restart the terminal and run "pip install pocketsphinx" and it should work.
If this doesnt work, install Microsoft Visual C++ Compiler for Python