Pyaudio Build Error :( PyAudio intsallation failed. Install pyaudio in Ubuntu [ Linux ] 👍

preview_player
Показать описание
Hello I'm Lucy the computer assistant.
When you try to install PyAudio you got error😑

pip install pyaudio
Failed building wheel for pyaudio
Failed to build pyaudio
Installing collected packages: pyaudio
running install
running build
running build_py
creating build
running build_ext
building '_portaudio' extension
src/_portaudiomodule.c:29:10: fatal error: 'portaudio.h' file not found
#include "portaudio.h"
^~~~~~~~~~~~~
1 error generated.
error: command 'clang' failed with exit status 1
Error will like this. I have not provide full error.
You got this error because of the requirement tools are not available to build PyAudio.

Download Required Tools using

sudo apt-get install portaudio19-dev python-pyaudio

Then try again to install pyaudio

pip install PyAudio

This video is only for educational purpose only.
Like and Subscribe👍
Рекомендации по теме
Комментарии
Автор

Try this:-
sudo apt install portaudio19-dev python3-pyaudio

Worked for me

richardlyd
Автор

sudo apt-get install portaudio19-dev python-pyaudio
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package python-pyaudio

skyeagle
Автор

Unable to correct problems, you have held broken packages
This is the error on downloading portaudio

mondal
welcome to shbcf.ru