错误:dockerfile中的命令'bdist_wheel'无效

时间:2018-07-30 05:05:38

标签: python pip dockerfile python-wheel

我遇到以下错误:

Building wheels for collected packages: fisher, goatools, wget
  ...
  Running setup.py bdist_wheel for fisher: finished with status 'error'
  ...

  error: invalid command 'bdist_wheel'

  ----------------------------------------
  Failed building wheel for fisher
  Running setup.py clean for fisher

在此Dockerfile中:

FROM debian:stretch-backports
RUN apt-get update  && apt-get install -y --no-install-recommends \
    build-essential \
    apache2 \
    python-dev \
    python-setuptools \
    python-numpy \
    python-mysqldb \
    python-pip \
    git wget \
    ncbi-blast+ && \
    apt-get autoremove -y && apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

RUN pip install wheel fisher goatools

我想念什么?

提前谢谢

1 个答案:

答案 0 :(得分:0)

请先安装wheel软件包,然后再安装其他软件包

RUN pip install wheel
RUN pip install fisher goatools