pip3 install pyaudio
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at
https://pip.pypa.io/en/latest/development/release-process/#python-2-supportCollecting pyaudio
Using cached
https://files.pythonhosted.org/packages/ab/42/b4f04721c5c5bfc196ce156b3c768998ef8c0ae3654ed29ea5020c749a6b/PyAudio-0.2.11.tar.gzInstalling collected packages: pyaudio
Running
setup.py install for pyaudio ... error
ERROR: Command errored out with exit status 1:
command: /usr/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-2lxeHx/pyaudio/
setup.py'"'"';
file='"'"'/tmp/pip-install-2lxeHx/pyaudio/
setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(
file);code=
f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code,
file, '"'"'exec'"'"'))' install --record /tmp/pip-record-PuWIG9/install-record.txt --single-version-externally-managed --compile
cwd: /tmp/pip-install-2lxeHx/pyaudio/
Complete output (13 lines):
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.7
copying src/
pyaudio.py -> build/lib.linux-x86_64-2.7
running build_ext
building '_portaudio' extension
creating build/temp.linux-x86_64-2.7
creating build/temp.linux-x86_64-2.7/src
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/include/python2.7 -c src/_portaudiomodule.c -o build/temp.linux-x86_64-2.7/src/_portaudiomodule.o
unable to execute gcc: No such file or directory
error: command 'gcc' failed with exit status 1
----------------------------------------
ERROR: Command errored out with exit status 1: /usr/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-2lxeHx/pyaudio/
setup.py'"'"';
file='"'"'/tmp/pip-install-2lxeHx/pyaudio/
setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(
file);code=
f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code,
file, '"'"'exec'"'"'))' install --record /tmp/pip-record-PuWIG9/install-record.txt --single-version-externally-managed --compile Check the logs for full command output.