Cannot install pyaudio, gcc error Cannot install pyaudio, gcc error python python

Cannot install pyaudio, gcc error


Sorry about the inappropriate answer last time, I will post the solution of the question. It might be helpful for Ubuntu distributions.

  1. First we need to install portaudio modules: sudo apt-get install libasound-dev

  2. Download the portaudio archive from: http://files.portaudio.com/download.html

  3. Unzip the archive: tar -zxvf [portaudio.tgz]

  4. Enter the directory, then run: ./configure && make

  5. Install: sudo make install

  6. And finally: sudo pip install pyaudio

  7. Check the version of pyaudio, it should be 0.2.9


This worked for me:

sudo apt-get install libasound-dev portaudio19-dev libportaudio2 libportaudiocpp0sudo apt-get install ffmpeg libav-toolssudo pip install pyaudio


On Ubuntu:

sudo apt-get install python-pyaudio

or

sudo apt-get install python3-pyaudio