7

I wanted to know how I can pre-install Python packages in Sagemaker before spinning it up?

For example, I want to install Tensorfliw, LightFM, and Scikit-optimize

How can i code a Lifecycle Configuration file which will tell sagemaker to install these packages before it spins up and have it ready when I am ready to code.

I know the following resources:

  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

1 Answer 1

1

For Tensorflow, there is an existing Conda environment(tensorflow_p36) with TensorFlow preinstalled that you can use. For other packages that aren't present by default, you can use this Lifecycle Configuration script sample to install them into the tensorflow_p36 environment.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.