【问题标题】:Install Multiple Package using Sagemaker Life Cycle configuration file使用 Sagemaker 生命周期配置文件安装多个包
【发布时间】:2019-08-16 16:03:10
【问题描述】:

我想知道如何在启动之前在 Sagemaker 中预安装 Python 包?

例如,我想安装 Tensorfliw、LightFM 和 Scikit-optimize

我如何编写一个生命周期配置文件,它会告诉 sagemaker 在它启动之前安装这些包,并在我准备好编码时让它准备好。

我知道以下资源:

  1. https://aws.amazon.com/blogs/machine-learning/customize-your-amazon-sagemaker-notebook-instances-with-lifecycle-configurations-and-the-option-to-disable-internet-access/
  2. https://docs.aws.amazon.com/sagemaker/latest/dg/nbi-add-external.html

【问题讨论】:

    标签: python-3.x amazon-web-services ubuntu configuration amazon-sagemaker


    【解决方案1】:

    对于 Tensorflow,有一个现有的 Conda 环境 (tensorflow_p36),其中预装了 TensorFlow 供您使用。对于默认不存在的其他包,您可以使用此Lifecycle Configuration script sample 将它们安装到 tensorflow_p36 环境中。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2019-02-16
      • 2020-07-26
      • 2021-02-03
      • 2022-10-16
      • 1970-01-01
      • 2016-08-17
      • 2023-03-28
      相关资源
      最近更新 更多