gpt-omni / mini-omni

open-source multimodal large language model that can hear, talk while thinking. Featuring real-time end-to-end speech input and streaming audio output conversational capabilities.
https://arxiv.org/abs/2408.16725
MIT License
3.06k stars 273 forks source link

安装出错 pip install PyAudio==0.2.14 #45

Closed taozhiyuai closed 2 months ago

taozhiyuai commented 2 months ago

pip install PyAudio==0.2.14 Looking in indexes: https://pypi.mirrors.ustc.edu.cn/simple/, https://pypi.tuna.tsinghua.edu.cn/simple, https://mirrors.aliyun.com/pypi/simple/ Collecting PyAudio==0.2.14 Using cached https://mirrors.aliyun.com/pypi/packages/26/1d/8878c7752febb0f6716a7e1a52cb92ac98871c5aa522cba181878091607c/PyAudio-0.2.14.tar.gz (47 kB) Installing build dependencies ... done Getting requirements to build wheel ... done Preparing metadata (pyproject.toml) ... done Building wheels for collected packages: PyAudio Building wheel for PyAudio (pyproject.toml) ... error error: subprocess-exited-with-error

× Building wheel for PyAudio (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [18 lines of output] running bdist_wheel running build running build_py creating build creating build/lib.macosx-11.0-arm64-cpython-310 creating build/lib.macosx-11.0-arm64-cpython-310/pyaudio copying src/pyaudio/init.py -> build/lib.macosx-11.0-arm64-cpython-310/pyaudio running build_ext building 'pyaudio._portaudio' extension creating build/temp.macosx-11.0-arm64-cpython-310 creating build/temp.macosx-11.0-arm64-cpython-310/src creating build/temp.macosx-11.0-arm64-cpython-310/src/pyaudio clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /Users/taozhiyu/miniconda3/envs/omni/include -arch arm64 -fPIC -O2 -isystem /Users/taozhiyu/miniconda3/envs/omni/include -arch arm64 -DMACOS=1 -I/usr/local/include -I/usr/include -I/opt/homebrew/include -I/Users/taozhiyu/miniconda3/envs/omni/include/python3.10 -c src/pyaudio/device_api.c -o build/temp.macosx-11.0-arm64-cpython-310/src/pyaudio/device_api.o src/pyaudio/device_api.c:9:10: fatal error: 'portaudio.h' file not found

include "portaudio.h"

           ^~~~~~~~~~~~~
  1 error generated.
  error: command '/usr/bin/clang' failed with exit code 1
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for PyAudio Failed to build PyAudio ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (PyAudio)

taozhiyuai commented 2 months ago

解决了.

brew install portaudio pip install pyaudio

参考https://pypi.org/project/PyAudio/