Error installing pyaudio and pocketsphinx

Asked

Viewed 2,386 times

-1

When I type sudo pip install pyaudio this error message appears, I already googled but I can’t 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/

  • What is the version of python currently running on your machine?

  • I’ve installed the 3.5 and 3.6 ... think you may be having some conflict between the two ?

  • Between those two I believe not, but it was just to make sure that there is no conflict with a version of Python 2. Tries to install direct from package manager and see if it resolves. Ex: sudo apt-get install python3-pyaudio

  • Man, thank you so much it worked now I need to update the version of pyaudio but now I search in google rs, Thank you very much :D

  • A doubt Mr_ghost why with the pocketsphinx that same process did not work ? ... I’m half lost

2 answers

1

Hello,

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

sudo apt-get install python3-pyaudio

But I forgot to mention that in this way may not bring the most up-to-date version. And how you asked soon after about the pocketsphinx, will need to verify the correct name for the package manager his. This error with the installation of Pip may be happening because there are still some tool installations to be done, 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 I helped both cases =)

REFERENCES: pyaudio and pocketsphinx

  • Man, now it seems to have worked out all right, I installed pyaudio directly by package manager but couldn’t update it. So I searched on the pyaudio site and on the terminal I typed the command : python -m Pip install pyaudio and managed to update , I did the same with pocketsphinx and it also worked ... Good, Thank you again :D

-2

Right, just like the buddy said...

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

Browser other questions tagged

You are not signed in. Login or sign up in order to post.