1
嗨,大家好,我正在嘗試從碼頭中的源代碼構建numpy。 這是我Dockerfile:從碼頭中的源代碼構建numpy
FROM debian:testing
MAINTAINER Dr Suman Khanal <[email protected]>
LABEL updated_at '2017-07-26'
WORKDIR/
RUN apt-get update \
&& apt-get install -y gnupg git wget build-essential python3 python3-dev
python3-setuptools python3-pip libatlas3-base libatlas-dev libatlas-base-dev
liblapack-dev libblas-common libblas3 libblas-dev cython
RUN git clone https://github.com/numpy/numpy.git
WORKDIR /numpy
RUN python3 setup.py build --fcompiler=gnu95 install
CMD ["numpy"]
但其引發此錯誤。 Build failed: The command '/bin/sh -c python3 setup.py build --fcompiler=gnu95 install' returned a non-zero code: 1
任何幫助?
非常感謝,
網速慢
謝謝你,它的工作。但我無法理解這個命令'CMD [「python3」,「/numpy/numpy/tests/test_ctypeslib.py」]'。你能解釋一下嗎? –
@Suman它只是運行numpy的測試,以確保它是否工作。您可以定義自己的命令或任何您需要的內容。 – VladoDemcak