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 in Machine Learning by akhtar
• 29,340 points
577 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 by MD
• 67,880 points

Related Questions In Machine Learning

+1 vote
1 answer
+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 1,475 views
0 votes
0 answers
0 votes
1 answer
+1 vote
1 answer
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 in Machine Learning by MD
• 67,880 points
287 views