portaudio.h: No such file or directory
This should help
$ sudo apt-get install portaudio19-dev python-pyaudio python3-pyaudio
Added 8th of Jan 2021:
On Ubuntu 20.04 you have to use:
$ sudo apt install portaudio19-dev python3-pyaudio
here's what I've been going through...
There're several ways to install PortAudio
Or, manually build from source and install manually
- download source, http://files.portaudio.com/download.html
- build with cmake, with the matching compiler(msvc/mingw) and arch(x64/x86) to your Python
- put "
portaudio.h" into python-include directory, e.g.
- put "
portaudio.libinto python-lib directory, e.g.
the "min()" macro in pyaudio's soucefile
_portaudiomodule.c is troublesome, comment it out manually
pip install pyaudio --no-clean
_portaudiomodule.cin the temp directory and manually comment-out the "min()" macro
pip installfrom that directory
pip install c:\Temp\pip-install-yysb8bme\pyaudio_c92585\
Or,3rd party wheels
- this answer said:
pip install pipwin
pipwin install pyaudio
yum install portaudio-devel alsa-lib-devel portaudio pip install pyaudio --user
brew install portaudio pip3 install pyaudio