$ python -m pip install pyaudio
で、
src/_portaudiomodule.c:29:10: fatal error: 'portaudio.h' file not found
#include "portaudio.h"
&nsbp;&nsbp;&nsbp;&nsbp;&nsbp;^
1 error generated.
error: command 'gcc' failed with exit status 1
と出た。#include "portaudio.h"
&nsbp;&nsbp;&nsbp;&nsbp;&nsbp;^
1 error generated.
error: command 'gcc' failed with exit status 1
Then, I installed portaudio with brew.
$ brew install portaudio
But,
$ python -m pip install pyaudio
で、
src/_portaudiomodule.c:29:10: fatal error: 'portaudio.h' file not found
#include "portaudio.h"
^
1 error generated.
error: command 'gcc' failed with exit status 1
Error again.#include "portaudio.h"
^
1 error generated.
error: command 'gcc' failed with exit status 1
そこでThus, I passed an include path to pip,
$ python -m pip install --global-option=build_ext --global-option="-I/usr/local/include/" pyaudio
今回はThis time,
ld: library not found for -lportaudio
portaudio libiraryがないと出た。最終的にFinally, I did,
$ export LIBRARY_PATH="/usr/local/lib"
$python -m pip install --global-option=build_ext --global-option="-I/usr/local/include/" pyaudio
$python -m pip install --global-option=build_ext --global-option="-I/usr/local/include/" pyaudio
0 件のコメント:
コメントを投稿