Installing PyAudio on Debian on the Raspberry Pi


Well I used to get this error while trying to installing PyAudio on Debain and I finally figured it out how to get past it hence I just wanted to help anyone who was going through the same struggle. The error that i was getting was " Failed building wheel for pyAudio" or "command 'arm-linux-gnueabihf-gcc' failed with exit status 1" The following  is the solution:

Step 1: On the command line (Terminal) you need to first install the ALSA library using the following command:

sudo apt-get install libasound-dev

Step 2: Then you need to compile the PortAudio library:

sudo apt-get install portaudio19-dev

Step 3: Now you  can install PyAudio using the following command:

pip install pyaudio --user

Step4: how ever I had an issue with calling it in Python 3 or Python hence i used the following command... and Shazam! 


sudo apt-get install python3-pyaudio
This should do the magic ... as it did for me ... let me know if this works for you!

Maybe the force be with you.

Comments

  1. thank you soo much <3 you saved me :)

    ReplyDelete
  2. It is a very informative and useful post thanks it is good material to read this post increases my knowledge. Mechatronics

    ReplyDelete
  3. Very significant Information for us, I have think the representation of this Information is actually superb one. This is my first visit to your site. Granite slabs

    ReplyDelete
  4. Congratulation for the great post. Those who come to read your Information will find lots of helpful and informative tips.
    NEET Preparation in Mumbai

    ReplyDelete
  5. Wow what a great blog, i really enjoyed reading this, good luck in your work.
    Divorce Problem Solution

    ReplyDelete
  6. This comment has been removed by a blog administrator.

    ReplyDelete
  7. This comment has been removed by a blog administrator.

    ReplyDelete
  8. Hello, an amazing Information dude. Thanks for sharing this nice information with us. Black granite countertops

    ReplyDelete
  9. Very informative and impressive post you have written, this is quite interesting and i have went through it completely, an upgraded information is shared, keep sharing such valuable information. Emerald Green Contacts

    ReplyDelete
  10. what version of raspian did this work on

    ReplyDelete
  11. This comment has been removed by a blog administrator.

    ReplyDelete
  12. I got here much interesting stuff. The post is great! Thanks for sharing it!
    Custom Cloth Facemask

    ReplyDelete
  13. This comment has been removed by a blog administrator.

    ReplyDelete
  14. Pandit PK Sharma is no.1 Divorce Problem Solution Specialist as he is providing Divorce Problem Solution services worldwide to people to give them relief from their problems. +91-9855881408
    Husband wife dispute solution
    Vashikaran specialist
    Black magic guru ji
    Vashikaran free of cost
    Love vashikaran pandit

    ReplyDelete
  15. Thanks for this. I really like what you've posted here and wish you the best of luck with this blog and thanks for sharing. Best Atlanta wedding Atlanta DJ

    ReplyDelete
  16. Thank you for your articles that you have shared with us. Hopefully you can give the article a good benefit to us. Healgen Corona Test

    ReplyDelete

Post a Comment

Popular Posts