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
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
Try this solution:
These steps worked on M1 Pro chips
portaudio
brew install portaudio
portaudio
brew link portaudio
portaudio
was installed (use it in the next step)brew --prefix portaudio
.pydistutils.cfg
in your home directorysudo nano $HOME/.pydistutils.cfg
then paste the following
[build_ext]
include_dirs=<PATH FROM STEP 3>/include/
library_dirs=<PATH FROM STEP 3>/lib/
pip install pyaudio
or
pip3 install pyaudio
from: Unable to install PyAudio on M1 Mac [PortAudio already installed]
brew install portaudio
was enough in Intel Mac –
Ronnaronnholm sudo
in step 4 and my problem is resolved. –
Phoenician sudo apt-get install portaudio19-dev python3-all-dev
and pip install pyaudio
–
Orlene Developments files are needed. Those files are installed with the portaudio19-dev
package.
sudo apt install portaudio19-dev
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/*
I had this error building my own package and it was fixed by ending the pip install statement with --user
you can use below line for Mac OS
$ python3 -m venv tensorflow-metal-test
$ source tensorflow-metal-test/bin/activate
$ cd tensorflow-metal-test/
$ python -m pip install -U pip
$ pip install tensorflow-macos
$ pip install tensorflow-metal
© 2022 - 2024 — McMap. All rights reserved.
pip
then you may use option-v
(likeverbose
) to see more information whenpip
displays error. Without FULL error it is hard to say what is the problem. As I knowPyAudio
may use some C/C++ code and it may have problem with compilation. It may need to usehomebrew
in install some C/C++ libraries or C/C++ source codes with files.h
. But all this need more information about error. OR you should check other question for this problem withPyAudio
– Babiche