gpt4 book ai didi

python - 如何在 Mac OS X 10.7 的 virtualenv 中安装 PyAudio

转载 作者:太空狗 更新时间:2023-10-29 18:14:47 24 4
gpt4 key购买 nike

我试过了

easy_install pyaudio

而且它不起作用。我得到以下信息:

Searching for pyaudio
Reading http://pypi.python.org/simple/pyaudio/
Reading http://people.csail.mit.edu/hubert/pyaudio/
Best match: pyaudio 0.2.7
Downloading http://people.csail.mit.edu/hubert/pyaudio/packages/pyaudio-0.2.7.tar.gz
Processing pyaudio-0.2.7.tar.gz
Writing /var/folders/vg/98k5hfl52m16wm45ckdx1_5c0000gp/T/easy_install-s1wLkT/PyAudio-0.2.7/setup.cfg
Running PyAudio-0.2.7/setup.py -q bdist_egg --dist-dir /var/folders/vg/98k5hfl52m16wm45ckdx1_5c0000gp/T/easy_install-s1wLkT/PyAudio-0.2.7/egg-dist-tmp-pFDrFR
warning: no files found matching '*.c' under directory 'test'
clang: warning: argument unused during compilation: '-mno-fused-madd'
src/_portaudiomodule.c:29:10: fatal error: 'portaudio.h' file not found
#include "portaudio.h"
^
1 error generated.
error: Setup script exited with error: command 'clang' failed with exit status 1

最佳答案

看来你还没有安装Portaudio。
您可以从 Macports 或 Homebrew 获取它。

  • sudo port install portaudio
  • sudo brew install portaudio

关于python - 如何在 Mac OS X 10.7 的 virtualenv 中安装 PyAudio,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13491401/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com