error command gcc failed with exit status 1

0 votes

Hi Guys,

I am trying to install pyaudio with instructions. But I am getting the below error.

error: command 'gcc' failed with exit status 1

How can I solve this error?

Sep 6, 2020 in Machine Learning by akhtar
• 38,180 points
3,278 views

1 answer to this question.

0 votes

Hi@akhtar,

I don't know which steps you followed. But in my case, I followed the below steps and this worked for me.

  • First, we need to install Portaudio modules

$ sudo apt-get install libasound-dev
  • Download the Portaudio archive from the below link.

 http://portaudio.com/download.html

  • Unzip the archive.

$ tar -zxvf portaudio.tgz
  • Enter the directory, then run the below command.

$ ./configure && make
  • And finally, install Pyaudio.

$ sudo pip install pyaudio
  • Check the version of Pyaudio, it should be 0.2.9

answered Sep 6, 2020 by MD
• 95,220 points

Related Questions In Machine Learning

+1 vote
1 answer
0 votes
2 answers
+1 vote
2 answers

how can i count the items in a list?

Syntax :            list. count(value) Code: colors = ['red', 'green', ...READ MORE

answered Jul 6, 2019 in Python by Neha
• 330 points

edited Jul 8, 2019 by Kalgi 2,185 views
0 votes
0 answers
0 votes
1 answer

ERROR: PyAudio-0.2.11-cp39-cp39-win32.whl is not a supported wheel on this platform.

Hi@akhtar, You should download the version that is ...READ MORE

answered Sep 6, 2020 in Machine Learning by MD
• 95,220 points
1,843 views
+1 vote
1 answer

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-8nhf9w2t/grpcio/

Hi@akhtar, You may get this error because of ...READ MORE

answered May 16, 2020 in Machine Learning by MD
• 95,220 points
15,219 views
0 votes
1 answer

error: command 'cl.exe' failed: No such file or directory

Hi@akhtar, The cl.exe is the MSFT C /C++ compiler and ...READ MORE

answered Jul 13, 2020 in Machine Learning by MD
• 95,220 points
699 views