What to do if you can't install pyaudio with pip #Python

I get this error and can't install

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

It seems that some people succeeded after installing "portaudio.h" with homebrew, but I couldn't.

brew install portaudio

Discover someone with a similar problemStackoverflow

I was able to install it successfully with the following command! It seems that the library specification was strange.

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

Recommended Posts

What to do if you can't install pyaudio with pip #Python
What to do if you can't pip install mysqlclient
What to do if you can't install with pip in babun environment
What to do if you get a UnicodeDecodeError with pip install
What to do if you can't sort files with subscripts
How to install and use pyenv, what to do if you can't switch python versions
What to do if you can't build your project with Maven
What to do if you can't pipenv shell
Note: What to do if pip install fails
What to do if you can't find well with grep's -f option
What to do if you couldn't send an email to Yahoo with Python.
What to do if you can't use scikit grid search in Python
What to do if you get Could not fetch URL 443 with pip
What to do if pip install fails in Xcode 5.1
What to do if pip install fails to install dependent libraries
What to do when you can't bind CaboCha to Python
What to do with Magics install
What to do with PYTHON release?
Python | What you can do with Python
What to do if you get an error when installing python with pyenv
[AWS] What to do when you want to pip with Lambda
What to do if `pip install matplotlib` fails on Mac
What to do if you can't log in as root
What to do if you can't use WiFi on Linux
What to do if pip install mysqlclient fails on MacOS
What to do if you can't hit the arrow keys in the Python interactive console
What to do if you run python in IntelliJ and end with an error
What to do if you get a minus zero in Python
[TensorFlow] If you want to run TensorBoard, install it with pip
What to do if PyAudio cannot be installed on Python 3.7, 3.8, 3.9 on Windows
What to do if you can't use the trash in Lubuntu 18.04.
What to do if you get an Undefined error when trying to use pip with pyenv
What to do if pip cannot be installed
What to do if you can't find PDO in Laravel or CakePHP
What to do if ipython and python start up with different versions
What to do if you get lost in file reference with FileNotFoundError
What to do if pyenv install does not proceed with an error
What to do if the server doesn't start with python manage.py runserver
What to do if you get a TypeError with numpy min, max
[Python] What to do if an error occurs in pip (pyinstaller, pyautogui, etc.)
Workaround if you get an error when trying to install PySide with pip
What to do if you get angry with swapon failed: Operation not permitted
No module named What to do if you get'libs.resources'
What to do if you get a "Wrong Python Platform" warning when using Python with the NetBeans IDE
EC2 / Amazon Linux2: What to do if you get an "unable to execute'gcc': No such file or directory" error with pip install
ModuleNotFoundError: No module What to do if you get'tensorflow.contrib'
Links to do what you want with Sublime Text
What to do if scrapy doesn't work after installing scrapy with pip on mac
What to do if you get angry with "Value Error: unknown local: UTF-8" in python manage.py syncdb
What to do if a UnicodeDecodeError occurs in pip
mac OS X 10.15.x pyenv Python If you can't install
What to do if you get "Python not configured." Using PyDev in Eclipse
What you can't do with hstack or vstack with dstack
If you try to install Python2 pip after installing Python3 pip and it is rejected
What to do if you can't pipenv shell
What to do if you can't pip install mysqlclient
UnicodeDecodeError: What to do when'shift_jis' codec can't decode byte
What you can't do with hstack or vstack with dstack
What to do when you can't bind CaboCha to Python
What to do if you get `No kernel for language python found` in Hydrogen
What to do if you get an error when importing matplotlib in Python (Mac)
What to do if you get an Import Error when importing matplotlib with Jupyter
What to do if ʻarguments [0] .scrollIntoView ();` fails in python selenium
[Road to intermediate Python] Install packages in bulk with pip
Until you can install your own Python library with pip