【发布时间】:2020-07-14 15:19:18
【问题描述】:
我正在构建 AWS Batch 作业。
我有 python3 包,它内置在基于 AmazonLinux 的 docker 映像中。我需要安装 boto3、pandas、s3fs 和其他几个模块。我在 Dockerfile 中设置了命令来安装模块和 python3。
我调用了一个入口脚本,它调用了其他 src python 文件。
我收到一个错误 no module named boto3,作为我的批处理作业的输出。
我猜问题出在 AmazonLinux 上,因为它默认使用 python2 并且找不到 python3 包。
如何在我的包可以使用的 docker 映像中安装包?
【问题讨论】:
-
你能显示你的 dockerfile 吗?
标签: python amazon-web-services docker amazon-linux aws-batch