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]
Developments files are needed. Those files are installed with the portaudio19-dev
package.
sudo apt install portaudio19-dev
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