Skip to content
Advertisement

Sagemaker lifecycle configuration for installing pandas not working

I am trying to update pandas within a lifecycle configuration, and following the example of AWS I have the next code:

JavaScript

Then I attach it to a notebook and when I enter the notebook and open a notebook file, I see that pandas have not been updated. Using !pip show pandas I get:

JavaScript

So we can see that I am indeed in the python3 env although the version is 0.24.

However, the log in cloudwatch shows that it has been installed:

JavaScript

What could be the problem?

Advertisement

Answer

if you want to install the packages only in for the python3 environment, use the following script in your Create Sagemaker Lifecycle configurations.

JavaScript

Reference : “Lifecycle Configuration Best Practices

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement