LoginSignup
0
0

More than 1 year has passed since last update.

macにpyAudioを入れるときに"portaudio.h"が見つからないと言われる

Last updated at Posted at 2022-07-14

詰まったのでメモしておきます。

こんなエラーが表示されます。

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 code 1

解決方法

pipとhomebrewが最新であることを確認してください。

その後以下を実行

brew install portaudio

その後以下を実行

pip install --global-option='build_ext' --global-option="-I$(brew --prefix)/include" --global-option="-L$(brew --prefix)/lib" pyaudio
0
0
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
0
0