Docker unable to install numpy, scipy, or gensim

后端 未结 1 934
梦毁少年i
梦毁少年i 2020-12-20 18:18

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,

相关标签:
1条回答
  • 2020-12-20 18:59

    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.

    0 讨论(0)
提交回复
热议问题