sudo apt-get install libasound-dev portaudio19-dev libportaudio2 libportaudiocpp0
pip install pyaudio --user
sudo apt install python3-pyaudio
If you want to use a whl file:
Find the appropriate .whl file from https://www.lfd.uci.edu/~gohlke/pythonlibs/#pyaudio and download it.
Go to the folder where the wheel file is located.
Install the wheel using pip, ex. pip install PyAudio-0.2.11-cp38-cp38-win_amd64.whl