Error installing pyaudio and pocketsphinx

0

When I type sudo pip install pyaudio this error message appears, I already researched google but can not find a solution:

  

Command "/usr/bin/python3.6 -u -c" import setuptools,   tokenize; file = '/ tmp / pip-build-eeidouwx / pyaudio / setup.py'; f = getattr (tokenize, 'open', open) ( file ) ; code = f.read (). replace ('\ r \ n',   '\ n'); f.close (); exec (compile (code, file , 'exec')) "install   --record /tmp/pip-et7av7k2-record/install-record.txt --single-version-externally-managed --compile "failed with error code 1 in / tmp / pip-build-eeidouwx / pyaudio /

    
asked by anonymous 25.09.2017 / 17:08

1 answer

1

Hello,

As I mentioned in the comments one of the solutions would be to download directly through package manager , as in your case it is Python 3 you can use the command:

sudo apt-get install python3-pyaudio

But I forgot to mention that this way may not bring the most up-to-date version. And as you asked shortly about pocketsphinx , you'll need to check the correct name for the package manager for it. This error with the pip installation might be happening because some tool installations are still missing, try to run the commands below:

Python 2

First run this command sudo apt-get install python python-all-dev python-pip build-essential swig git libpulse-dev

And then pip install pocketsphinx

Python 3

First run this command sudo apt-get install python3 python3-all-dev python3-pip build-essential swig git libpulse-dev

And then pip3 install pocketsphinx

I hope to have helped in both cases =)

REFERENCES: pyaudio and pocketsphinx

    
25.09.2017 / 20:06