pyaudio library 설치에서 에러가 발생했다.
pip install pyaudio
에러 메세지를 타이틀만 기록해서 상세한 에러 메세지는 stackoverflow에서 가지고 왔다.
Searching for pyaudio
Reading http://pypi.python.org/simple/pyaudio/
Reading http://people.csail.mit.edu/hubert/pyaudio/
Best match: pyaudio 0.2.4
Downloading http://people.csail.mit.edu/hubert/pyaudio/packages/pyaudio-0.2.4.tar.gz
Processing pyaudio-0.2.4.tar.gz
Running PyAudio-0.2.4/setup.py -q bdist_egg --dist-dir /tmp/easy_install-0Tetss/PyAudio-0.2.4/egg-dist-tmp-PYy9T8
In file included from /usr/include/python2.7/Python.h:8:0,
from src/_portaudiomodule.c:30:
/usr/include/python2.7/pyconfig.h:1155:0: warning: "_POSIX_C_SOURCE" redefined
/usr/include/features.h:214:0: note: this is the location of the previous definition
src/_portaudiomodule.c:31:23: fatal error: portaudio.h: No such file or directory
compilation terminated.
error: Setup script exited with error: command 'gcc' failed with exit status 1
해결방법
apt-get install portaudio19-dev -y
참고 링크
'SW > python' 카테고리의 다른 글
[python] hydralit delete loader (0) | 2022.05.27 |
---|---|
[python] ModuleNotFoundError: No module named 'streamlit.script_run_context' (0) | 2022.05.27 |
[python] AttributeError: module 'pickle' has no attribute 'dump' (0) | 2022.01.21 |
[python] pytube urllib.error.HTTPError: HTTP Error 410: Gone (0) | 2021.08.06 |
[python] python dlib install error (2) | 2021.08.04 |