I gonna install pyaudio and sounddevice packages via requirements.txt in EC2.
But it says raise OSError('PortAudio library not found')
So I tried to install libasound-dev for sounddevice...
Yum install libasound-dev
But it also said :
No package libasound-dev available
How should I do? I am in AWS EC2.
CodePudding user response:
libasound-dev
is for Ubuntu. For Amazon Linux 2
it should be:
sudo yum install alsa-lib-devel
For portaudio:
sudo amazon-linux-extras install epel -y
sudo yum install -y portaudio-devel portaudio
CodePudding user response:
If you are in Window and gonna use pyaudio, you would use like this:
pip install pipwin
pipwin install pyaudio
This works well on Window.