soundmeter icon indicating copy to clipboard operation
soundmeter copied to clipboard

Workaround for installing some dependencies on OS X

Open shichao-an opened this issue 7 years ago • 1 comments

If you encounter issues when installing Python dependencies, the following may help:

Trouble installing pyaudio

If you see the following error:

    src/_portaudiomodule.c:29:10: fatal error: 'portaudio.h' file not found
    #include "portaudio.h"
             ^
    1 error generated.
    error: command 'cc' failed with exit status 1

After installing portaudio with Homebrew:

brew install portaudio

Try the following command to install pyaudio:

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

See https://stackoverflow.com/a/33821084 for details.

Trouble installing python-daemon

If you see such error while installing-daemon:

    i = p.rfind('/') + 1
AttributeError: 'NoneType' object has no attribute 'rfind'

Try this:

pip install docutils

Then install python-daemon:

pip install python-daemon

See https://stackoverflow.com/a/44539260 for details.

shichao-an avatar Aug 23 '17 05:08 shichao-an

brew install portaudio -bash: brew: command not found

I am getting this error.

iakshayk avatar Jan 22 '21 15:01 iakshayk