【发布时间】: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 -V和RUN 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 wheel和RUN pip install fisher goatools。或者更好的是,安装python-wheel和apt-get以及其他软件包。 -
谢谢你,python-wheel 搞定了
标签: python pip dockerfile python-wheel