我对Docker和Dockerfile完全陌生。我正在尝试使用:https://github.com/furious-luke/lizards-are-awesome.git。该程序旨在减少格式方面的困难并在python 3中使用快速结构。
现在,我遇到了[ERROR: Unsatisfiable constraints]
的问题,我解决了这个问题,所以我认为,可以这样解决:
**echo "ipv6" >> /etc/modules** before **apk add --update.**
但是现在我有了这个:[/bin/sh: pip: not found].
我尝试过重新安装python3和pip,将get-pip.py
与Dockerfile放在同一文件夹中。但是似乎没有任何作用。我真的很难受。
我修改过的Dockerfile看起来像这样:
FROM alpine:edge
RUN mkdir -p /usr/local/bin /usr/local/app /usr/local/plink
WORKDIR /usr/local
ADD repositories /etc/apk/repositories
RUN echo "ipv6" >> /etc/modules apk add --update \
python \
cython \
openblas@community \
py-numpy@community \
py-scipy@testing \
gsl \
&& rm -rf /var/lib/apt/lists/*
RUN echo "ipv6" >> /etc/modules apk add --update \
python-dev \
build-base \
curl \
gsl-dev \
cython-dev \
py-numpy-dev@community \
openblas-dev@community \
py-pip \
&& pip install pandas xlrd python-slugify \
&& curl -s -k -L https://github.com/rajanil/fastStructure/archive/master.tar.gz | tar xz \
&& mv fastStructure-master fastStructure \
&& cd fastStructure/vars \
&& python setup.py build_ext --inplace \
&& cd .. \
&& python setup.py build_ext --inplace \
&& apk del --force python-dev build-base curl gsl-dev cython-dev py-numpy-dev py-pip \
&& rm -rf /var/lib/apt/lists/*
ADD convert.py /usr/local/bin
ADD plink.tgz /usr/local
WORKDIR /usr/local/app
它似乎可以工作到:
Step 6/9 :
RUN echo "ipv6" >> /etc/modules apk add --update python-dev build-base curl gsl-dev cython-dev py-numpy-dev@community openblas-dev@community py-pip && pip install pandas xlrd python-slugify && curl -s -k -L https://github.com/rajanil/fastStructure/archive/master.tar.gz | tar xz && mv fastStructure-master fastStructure && cd fastStructure/vars && python setup.py build_ext --inplace && cd .. && python setup.py build_ext --inplace && apk del --force python-dev build-base curl gsl-dev cython-dev py-numpy-dev py-pip && rm -rf /var/lib/apt/lists/*
---> Running in 8f4297dce507
/bin/sh: pip: not found
The command '/bin/sh -c echo "ipv6" >> /etc/modules apk add --update python-dev build-base curl gsl-dev cython-dev py-numpy-dev@community openblas-dev@community py-pip && pip install pandas xlrd python-slugify && curl -s -k -L https://github.com/rajanil/fastStructure/archive/master.tar.gz | tar xz && mv fastStructure-master fastStructure && cd fastStructure/vars && python setup.py build_ext --inplace && cd .. && python setup.py build_ext --inplace && apk del --force python-dev build-base curl gsl-dev cython-dev py-numpy-dev py-pip && rm -rf /var/lib/apt/lists/*' returned a non-zero code: 127