Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/305.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python pip在docker内部通过sagemaker培训安装s3fs,导致兼容性问题_Python_Docker_Pip_Amazon Sagemaker - Fatal编程技术网

Python pip在docker内部通过sagemaker培训安装s3fs,导致兼容性问题

Python pip在docker内部通过sagemaker培训安装s3fs,导致兼容性问题,python,docker,pip,amazon-sagemaker,Python,Docker,Pip,Amazon Sagemaker,我正试图将我的培训脚本记录在sagemaker上。这里是我的dockerfile的样子 FROM python:3.6 RUN pip install --use-feature=2020-resolver pandas RUN pip install --use-feature=2020-resolver numpy RUN pip install --use-feature=2020-resolver sklearn RUN pip install --use-feature=2020-re

我正试图将我的培训脚本记录在sagemaker上。这里是我的dockerfile的样子

FROM python:3.6
RUN pip install --use-feature=2020-resolver pandas
RUN pip install --use-feature=2020-resolver numpy
RUN pip install --use-feature=2020-resolver sklearn
RUN pip install --use-feature=2020-resolver xgboost
RUN pip install --use-feature=2020-resolver xlrd
RUN pip install --use-feature=2020-resolver fsspec
RUN pip install --use-feature=2020-resolver s3fs
RUN pip3 install --use-feature=2020-resolver sagemaker-training
COPY train.py /opt/ml/code/train.py
WORKDIR /opt/ml/code/
# Defines train.py as script entrypoint
ENV SAGEMAKER_PROGRAM train.py
当我构建docker映像时,我在

步骤9/12:运行pip3安装--使用功能=2020解析器sagemaker培训:

Attempting uninstall: botocore
    Found existing installation: botocore 1.17.44
    Uninstalling botocore-1.17.44:
      Successfully uninstalled botocore-1.17.44
ERROR: aiobotocore 1.1.1 requires botocore<1.17.45,>=1.17.44, but you'll have botocore 1.17.54 which is incompatible.
Successfully installed bcrypt-3.2.0 boto3-1.14.54 botocore-1.17.54 cffi-1.14.2 cryptography-3.1 gevent-20.6.2 greenlet-0.4.16 inotify-simple-1.2.1 paramiko-2.7.2 protobuf-3.13.0 psutil-5.7.2 pycparser-2.20 pynacl-1.4.0 retrying-1.3.3 s3transfer-0.3.3 sagemaker-training-3.6.2 werkzeug-1.0.1 zope.event-4.4 zope.interface-5.1.0 
正在尝试卸载:botocore
找到现有安装:botocore 1.17.44
卸载botocore-1.17.44:
已成功卸载botocore-1.17.44
错误:aiobotocore 1.1.1要求botocore=1.17.44,但您将拥有不兼容的botocore 1.17.54。
已成功安装bcrypt-3.2.0 boto3-1.14.54 botocore-1.17.54 cffi-1.14.2加密-3.1 gevent-20.6.2 greenlet-0.4.16 inotify-simple-1.2.1 paramiko-2.7.2 protobuf-3.13.0 psutil-5.7.2 pycparser-2.20 pynacl-1.4.0 retrying-1.3.3.3 s3transfer-0.3.3.3.3 sagemaker-training-3.6.2 Werzeug-1.0.0.0.0.1.0.0.0.0.1.0.0.0.0.1.0.0.0.0.0.0.0.0.0.0

这是我第一次尝试在sagemaker中使用docker。任何帮助都将不胜感激。

sagemaker training安装了最新的
boto3
,我认为
botocore
版本是
boto3
所必需的。您是否可以尝试安装其他版本的s3fs