pyaudio beheben: 'fatal error: portaudio.h: No such file or directory'
English
Deutsch
Problem:
Sie versuchen, pyaudio mit pip install -U pyaudio oder einem ähnlichen Befehl zu installieren, aber Sie sehen eine Fehlermeldung wie
pyaudio_compile_error.txt
src/_portaudiomodule.c:29:23: fatal error: portaudio.h: No such file or directory
#include "portaudio.h"
^
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-jgxnwixs/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-c3blzlv5-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-jgxnwixs/pyaudio/Lösung
Sie müssen die portaudio-Bibliothek installieren. Auf Debian/Ubuntu können Sie dies mit
install_portaudio.sh
sudo apt install portaudio19-devauf anderen Systemen suchen Sie entweder nach portaudio in Ihrem Paketmanager oder laden Sie die Bibliothek von http://www.portaudio.com/ herunter
Check out similar posts by category:
Python
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow