我有这个 Dockerfile:
FROM jupyter/scipy-notebook
ADD /dist /our_controller/dist
ADD /wheelhouse /our_controller/wheelhouse
COPY setup.py /our_controller
COPY package.py /our_controller
COPY README.md /our_controller
WORKDIR /app
# add our_controller to python 3.7
RUN python3 -m pip install -e ../our_controller/ --user
Run Code Online (Sandbox Code Playgroud)
我docker build -f ./Dockerfile .从我的项目的基本目录使用这个命令。我以前曾用于python3 setup.py package创建 ./dist 目录内容,所有依赖项都以 *.whl 文件的形式存在于 ./wheelhouse 目录中,由 package.py 生成。
我收到此错误:
docker build -f ./Dockerfile .
Sending build context to Docker daemon 810.4MB
Step 1/8 : FROM jupyter/scipy-notebook
---> 19db0c85c56d
Step 2/8 : ADD /dist /our_controller/dist …Run Code Online (Sandbox Code Playgroud) 我使用 pypy 基础的 Dockerfile 失败,出现 FileNotFoundError: [Errno 2] No such file or directory: 'llvm-config' when install llvmlite,numba 的依赖项,在我的 requirements.txt 中列出
我尝试在 Debian 8 上遵循并更新Python numba / llvmlite此处的说明 - 我无法构建 llvmlite
我的错误更详细:
Building wheels for collected packages: llvmlite
Building wheel for llvmlite (setup.py): started
Building wheel for llvmlite (setup.py): finished with status 'error'
ERROR: Command errored out with exit status 1:
command: /usr/local/bin/pypy3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-ux49fegr/llvmlite/setup.py'"'"'; __file__='"'"'/tmp/pip-install-ux49fegr/llvmlite/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, …Run Code Online (Sandbox Code Playgroud)