No module named ‘pyaudio’ in Ubuntu python app.
This is because pip3 install PyAudio fails because no such file as portaudio.h.
What I have tried:
It has been awhile since I tried accessing the microphone and speaker from Ubuntu. I was waiting for others to solve this problem. The WSL2 Ubuntu-22. 04 did not have portaudio installed. The portaudio.h file is provided by portaudio19-dev package. The file list of that package can be found here https: // packages.ubuntu.com/jammy/amd64/portaudio19-dev/filelist.
  • Read the question carefully.
  • Understand that English isn't everyone's first language so be lenient of bad spelling and grammar.
  • If a question is poorly phrased then either ask for clarification, ignore it, or edit the question and fix the problem. Insults are not welcome.
  • Don't tell someone to read the manual. Chances are they have and don't get it. Provide an answer or move on to the next question. Let's work to help developers, not make them feel stupid.
  •