LoginSignup
7
4

More than 5 years have passed since last update.

pip でpyaudioのインストールできなかった時の対処法 #Python

Last updated at Posted at 2017-02-03

こんなエラーがでてインストールできない

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

homebrewで"portaudio.h"インストールしてから行うと成功した人もいるみたいだが、私はできなかった。

brew install portaudio

同じ様な問題を抱えている人を発見!Stackoverflow

以下のコマンドで無事インストールできました!ライブラリ指定がおかしかったみたいです。

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

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
7
4