Reputation: 1387
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:
Upvotes: 7
Views: 1878
Reputation: 312
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.
Upvotes: 1