Skip to content Skip to sidebar Skip to footer

Can't Install PyAudio On GAE Flexible Environment(Python)

So I am having quite a few issues getting this flask backend up. It is pretty standard stuff apart from some logic that recognizes audio delivered from the frontend. To do this, I

Solution 1:

Since App Engine flex is based on docker you'll have to install dependencies from the Dockerfile. In this case you'd have to customize the App Engine Python Dockerfile to add all the libraries PyAudio might need. You could look at some Dockerfiles containing PyAudio Sample1 & Sample2.

I could go over the error by adding the following dependencies and libraries in the Dockerfile:

RUN apt-get update && apt-get install -y \
        vim \
        curl \
        wget \
        git \
        make \
        netcat \
        python \
        python2.7-dev \
        g++ \
        bzip2 \
        binutils
###############################################################################
RUN apt-get install -y portaudio19-dev libopenblas-base libopenblas-dev pkg-config git-core cmake python-dev liblapack-dev libatlas-base-dev libblitz0-dev libboost-all-dev libhdf5-serial-dev libqt4-dev libsvm-dev libvlfeat-dev  python-nose python-setuptools python-imaging build-essential libmatio-dev python-sphinx python-matplotlib python-scipy
# additional dependencies
RUN apt-get install -y \
        libasound2 \
        libasound-dev \
        libssl-dev

RUN pip install pyaudio

Post a Comment for "Can't Install PyAudio On GAE Flexible Environment(Python)"