I am trying to build a Docker application that uses Python\'s gensim library, version 2.1.0, which is being installed via pip from a requirements.txt file.
However,
To install numpy, scipy, or gensim, the following lines need to be added to the Dockerfile before RUN pip install -r requirements.txt
:
RUN apt-get -y install libc-dev
RUN apt-get -y install build-essential
RUN pip install -U pip
The first two lines install the C build tools required for the libraries. The tihrd line upgrades pip to the newest available version.