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

后端 未结 10 2216
我在风中等你
我在风中等你 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条回答
  •  旧时难觅i
    2020-11-29 21:26

    You have to install portaudio first then link that file. Only then you can find that header file (i.e, portaudio.h). To install portaudio in mac by using HomeBrew program use following commands.

    brew install portaudio
    brew link portaudio
    pip install pyaudio
    

    sudo is not needed if you're admin. We should refrain using sudo as it messes up lots of permissions.

提交回复
热议问题