close

[Solved] Import No module named pyaudio

Hello Guys, How are you all? Hope You all Are Fine. Today I get the following error Import No module named pyaudio in python. So Here I am Explain to you all the possible solutions here.

Without wasting your time, Let’s start This Article to Solve This Error.

How Import No module named pyaudio Error Occurs?

Today I get the following error Import No module named pyaudio in python.

How To Solve Import No module named pyaudio Error ?

  1. How To Solve Import No module named pyaudio Error ?

    To Solve Import No module named pyaudio Error Remove the directory PyAudio which already presen in /home/pi and then try these steps

  2. Import No module named pyaudio

    To Solve Import No module named pyaudio Error Remove the directory PyAudio which already presen in /home/pi and then try these steps

Solution 1

Remove the directory PyAudio which already presen in /home/pi and then try these steps

sudo apt-get install git

sudo git clone http://people.csail.mit.edu/hubert/git/pyaudio.git

sudo apt-get install libportaudio0 libportaudio2 libportaudiocpp0 portaudio19-dev

sudo apt-get install python-dev

cd pyaudio

sudo python setup.py install

or also you can try this

sudo apt-get install python-pyaudio

let us know if u need more assistance or any other trouble

Solution 2

If

sudo apt-get install python-pyaudio

did’t work try:

sudo apt-get install python3-pyaudio

Summery

It’s all About this issue. Hope all solution helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you? Thank You.

Also, Read