반응형
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- CLASS
- ChatGPT
- Torch
- 스팸
- GPT
- Android
- pytorch
- openAI
- linux
- no space left on device
- timm
- 오블완
- TTS
- 맛집
- ROS2
- ubuntu
- python
- CUDA
- opencv
- error
- string
- 딥러닝
- humble
- 터미널
- ros
- socketio
- 판교
- 티스토리챌린지
- tensorflow
- 분당맛집
Archives
- Today
- Total
RoBoLoG
[Python] pip install pyaudio 설치 오류 (fatal error: portaudio.h: No such file or directory) 본문
Error Solution/Etc
[Python] pip install pyaudio 설치 오류 (fatal error: portaudio.h: No such file or directory)
SKJun 2023. 1. 20. 10:12Collecting pyaudio==0.2.10
Downloading PyAudio-0.2.10.tar.gz (287 kB)
|████████████████████████████████| 287 kB 6.5 MB/s
Building wheels for collected packages: pyaudio
Building wheel for pyaudio (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /home/kooksung/ai_venv/vision_tts/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-xdixq894/pyaudio/setup.py'"'"'; __file__='"'"'/tmp/pip-install-xdixq894/pyaudio/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-dtivxult
cwd: /tmp/pip-install-xdixq894/pyaudio/
Complete output (16 lines):
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.8
copying src/pyaudio.py -> build/lib.linux-x86_64-3.8
running build_ext
building '_portaudio' extension
creating build/temp.linux-x86_64-3.8
creating build/temp.linux-x86_64-3.8/src
x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/home/kooksung/ai_venv/vision_tts/include -I/usr/include/python3.8 -c src/_portaudiomodule.c -o build/temp.linux-x86_64-3.8/src/_portaudiomodule.o
src/_portaudiomodule.c:29:10: fatal error: portaudio.h: No such file or directory
29 | #include "portaudio.h"
| ^~~~~~~~~~~~~
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
ERROR: Failed building wheel for pyaudio
아래처럼 portaudio19-dev 설치하여 해결
sudo apt install portaudio19-dev
728x90
반응형
'Error Solution > Etc' 카테고리의 다른 글
[adb] adb server version (41) doesn't match this client (39); killing... (4) | 2023.02.23 |
---|---|
[GIT] fatal: not a valid object name: 'master' (0) | 2023.02.22 |
[Git] commit 시점으로 파일 되돌리기 (0) | 2022.12.21 |
PortAudioError: Error querying device -1 (0) | 2022.12.12 |
[ImportError] ImportError: DLL load failed while importing Shiboken: 지정된 프로시저를 찾을 수 없습니다. (0) | 2022.12.01 |