Install Pyaudio to play wave in python

pip install Pyaudio

I got angry

.
.
.

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

.
.
.

Apparently portaudio.h is needed.

brew install portaudio

Now install portaudio and try again

.
.
.

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

.
.
.

That

According to various investigations, pyaudio only supports up to python3.3. Ours is python3.5

Hmm.

Give up.

There seems to be another way to just play the wave.

Playing by calling an external command (aplay) with subprocess.

Recommended Posts

Install Pyaudio to play wave in python
Manage python packages to install in containers
How to install Python
How to install python
Play youtube in python
[REAPER] How to play with Reascript in Python
Error when trying to install psycopg2 in Python
[2020.8 latest] How to install Python
How to install Python [Windows]
To flush stdout in Python
[Python] Created a class to play sin waves in the background with pyaudio
Login to website in Python
Preferences for playing Wave in Python PyAudio and PortAudio
Speech to speech in python [text to speech]
How to develop in Python
Python install in 2 lines @Windows
Post to Slack in Python
[Road to intermediate Python] Install packages in bulk with pip
How to install python using anaconda
[Python] How to do PCA in Python
Convert markdown to PDF in Python
How to collect images in Python
Steps to install Ubuntu in VirtualBox
Install scrapy in python anaconda environment
How to use SQLite in Python
In the python command python points to python3.8
Windows10: Install MeCab library in python
Try to calculate Trace in Python
install tensorflow in anaconda + python3.5 environment
Unable to install Python with pyenv
How to use Mysql in python
I can't install scikit-learn in Python
How to wrap C in Python
How to use ChemSpider in Python
6 ways to string objects in Python
How to use PubChem in Python
Steps to install python3 on mac
How to handle Japanese in Python
An alternative to `pause` in Python
How to install OpenCV on Cloud9 and run it in Python
install python
What to do if you can't install pyaudio with pip #Python
I tried to implement PLSA in Python
Try logging in to qiita with Python
How to access environment variables in Python
I tried to implement permutation in Python
Method to build Python environment in Xcode 6
How to dynamically define variables in Python
How to install and use pandas_datareader [Python]
How to do R chartr () in Python
python3 How to install an external module
[Kivy] How to install Kivy on Windows [Python]
Pin current directory to script directory in Python
[Itertools.permutations] How to put permutations in Python
PUT gzip directly to S3 in Python
Send email to multiple recipients in Python (Python 3)
Convert psd file to png in Python
Sample script to trap signals in Python
Search and play YouTube videos in Python
I tried to implement PLSA in Python 2
To set default encoding to utf-8 in python