我尝试使用构建的docker映像运行python脚本,该映像已经安装了静默模式miniconda3和pip所有需要的包。但是我一直在获取ImportError的错误,如下所示。我该怎么修呢?这是附加的代码
FROM diannepat/fsl6-core:latest
ENV PATH="/root/miniconda3/bin:${PATH}"
ARG PATH="/root/miniconda3/bin:${PATH}"
# Grab latest miniconda installer
RUN wget --no-check-certificate https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh \
&& bash Miniconda3-latest-Linux-x86_64.sh -b \
&& rm -f Miniconda3-latest-Linux-x86_64.sh \
&& conda update -y conda \
&& conda install -y pip \
&& pip3 --trusted-host pypi.org --trusted-host files.pythonhosted.org install flywheel-sdk \
&& pip3 --trusted-host pypi.org --trusted-host files.pythonhosted.org install nipype
ENV FLYWHEEL=/flywheel/v0
RUN mkdir -p ${FLYWHEEL}
COPY run.py ${FLYWHEEL}/run.py
CMD [ "python", "./run.py"]错误消息如下所示:错误消息
发布于 2021-12-06 22:42:52
https://stackoverflow.com/questions/70252778
复制相似问题