Skip to content Skip to sidebar Skip to footer

By Installing Pyaudio (python3) On My Raspberry Pi 3 (noobs) I Get An Error, How Could I Fix This?

pip install pyaudio Downloading/unpacking pyaudio Downloading PyAudio-0.2.11.tar.gz Running setup.py (path:/tmp/pip-build-u0HEK5/pyaudio/setup.py) egg_info for package pyaud

Solution 1:

Note: this a Detailed steps for the installation, for faster installation please consider using @Julian's answer.

That is because you dont have proper prerequisites for the "pyaudio", and port audio header files are one of them.

so first install the prerequisites then your installation will succeed. try the below commands first before installing pyaudio.

sudo apt-getupdate

sudo apt-get install libportaudio0 libportaudio2 libportaudiocpp0 portaudio19-dev

sudo apt-get install python-dev 

after this now install pyaudio installation either from downloaded file or from a git repository

sudo pip install pyaudio

or

sudo apt-get install git

sudo git clone http://people.csail.mit.edu/hubert/git/pyaudio.git

cd pyaudio

sudo python setup.py install 

anything else leave a comment below.

Solution 2:

This is related to Pyaudio installation error - 'command 'gcc' failed with exit status 1'

Try the same solution:

sudo apt-get install python-pyaudio

Post a Comment for "By Installing Pyaudio (python3) On My Raspberry Pi 3 (noobs) I Get An Error, How Could I Fix This?"