如何安装pyaudi

2024-10-04 09:31:49 发布

您现在位置:Python中文网/ 问答频道 /正文

你好,我在Mac上,我已经安装了端口音频

brew install portaudio 

现在,当我做pip install pyaudio时,它会给我以下错误:

1 error generated.
error: command 'x86_64-apple-darwin13.4.0-clang' failed with exit status 1

Command
"/Library/Frameworks/Python.framework/Versions/3.7/bin/python3.7 -u -c
"import setuptools,
tokenize;__file__='/private/var/folders/_w/18g6xm5533l7csc0fzph3p6m0000gn/T/pip-install-vg_fqgq_/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 /private/var/folders/_w/18g6xm5533l7csc0fzph3p6m0000gn/T/pip-record-3w17es1l/install-record.txt
--single-version-externally-managed --compile" failed with error code 1 in
/private/var/folders/_w/18g6xm5533l7csc0fzph3p6m0000gn/T/pip-install-vg_fqgq_/pyaudio/

Tags: installpipvarwithcodeerrorprivaterecord