when installing pyaudio, pip cannot find portaudio.h in /usr/local/include

后端 未结 10 2218
我在风中等你
我在风中等你 2020-11-29 21:04

I\'m using mac osx 10.10 As the PyAudio Homepage said, I install the PyAudio using

brew install portaudio 
pip install pyaudio

the installa

10条回答
  •  不知归路
    2020-11-29 21:29

    For me on 10.10.5 the paths were under /opt/local. I had to add /opt/local/bin to my /etc/paths file. And the command line that worked was

    sudo pip install --global-option='build_ext' --global-option='-I/opt/local/include' --global-option='-L/opt/local/lib' pyaudio

提交回复
热议问题