【问题标题】:error: invalid command 'bdist_wheel' inside dockerfile错误:dockerfile 中的命令“bdist_wheel”无效
【发布时间】:2018-07-30 05:05:37
【问题描述】:

我收到以下错误:

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

我错过了什么?

提前谢谢你

【问题讨论】:

  • RUN pip -VRUN python -V 是什么?
  • RUN pip -V -> pip 9.0.1 from /usr/lib/python2.7/dist-packages (python 2.7) 和`RUN python -V -> Python 2.7.13`
  • 哦,没关系,我明白了 - 您必须将最后一个命令一分为二:RUN pip install wheelRUN pip install fisher goatools。或者更好的是,安装 python-wheelapt-get 以及其他软件包。
  • 谢谢你,python-wheel 搞定了

标签: python pip dockerfile python-wheel


【解决方案1】:

尝试先安装wheel 包,然后再安装其他所有东西

RUN pip install wheel
RUN pip install fisher goatools

【讨论】:

    猜你喜欢
    • 2018-12-07
    • 2023-03-05
    • 2021-03-24
    • 2016-08-29
    • 2022-01-24
    • 2017-10-04
    • 2016-04-21
    • 2013-08-29
    相关资源
    最近更新 更多