Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't pip install pyAudio in conda environment (MAC)

I am using a conda enviroment on mac and I want to install pyAudio. I tried to follow the suggestion in many threads to run

brew install portaudio

r

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

But it still didn't work from within the conda enviroment. However, running

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

worked outside of the conda enviroemtn (in the "base" enviroemtn").

What might be the reason? How can I install pyAudio inside the conda enviroment?

like image 396
okuoub Avatar asked Apr 06 '20 16:04

okuoub


1 Answers

Try conda install -c anaconda pyaudio

Source: https://anaconda.org/anaconda/pyaudio

like image 115
Ambitions Avatar answered Sep 26 '22 03:09

Ambitions