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 7, 2020 in Machine Learning by akhtar
• 38,260 points
4,917 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 7, 2020 by MD
• 95,460 points

Related Questions In Machine Learning

+1 vote
2 answers

ValueError: Found input variables with inconsistent numbers of samples: [1, 1000]

Hi@akhtar, Here you used x as your feature ...READ MORE

answered Apr 14, 2020 in Machine Learning by MD
• 95,460 points

edited Aug 11, 2021 by Soumya 57,950 views
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 7, 2019 in Python by Neha
• 330 points

edited Jul 8, 2019 by Kalgi 4,458 views
0 votes
1 answer
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 7, 2020 in Machine Learning by MD
• 95,460 points
4,865 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,460 points
32,830 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,460 points
1,713 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP