Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ERROR: Could not build wheels for pyaudio, which is required to install pyproject.toml-based projects [duplicate]

I'm getting this error when trying to install PyAudio:

ERROR: Could not build wheels for pyaudio, which is required to install pyproject.toml-based projects

Does anyone know why this is happening and how to solve?

Best

like image 347
Lakeside52 Avatar asked Sep 01 '25 10:09

Lakeside52


2 Answers

Developments files are needed. Those files are installed with the portaudio19-dev package.

sudo apt install portaudio19-dev
like image 164
DanDaHahn Avatar answered Sep 03 '25 01:09

DanDaHahn


When I use docker to dockerize my flask application I recieved this error so I solved this problem with this command. I just paste this in my Dockerfile

apt-get update && apt-get install -y \
        libportaudio2 libportaudiocpp0 portaudio19-dev \
        python3-dev \
        build-essential \
        && rm -rf /var/lib/apt/lists/*
like image 29
chanaka Avatar answered Sep 02 '25 23:09

chanaka