Reputation: 3375
I wanted to update pandas version in 'conda-python3' in SageMaker, I've followed the steps in this page, and linked the new configuration to my instance, CloudWatch log shows me the script has been executed successfully, but when I restart my instance and print out the panda version, it's still showing the old version 0.24.2, I don't understand why?
This is the script in the lifecycle configuration:
#!/bin/bash
sudo -u ec2-user -i <<'EOF'
pip install pandas
conda update pandas
source deactivate
EOF
Upvotes: 0
Views: 187
Reputation: 165
You are not activating any conda environment such as python3.
#!/bin/bash
sudo -u ec2-user -i <<'EOF'
# This will affect only the Jupyter kernel called "conda_python3".
source activate python3
pip install pandas
conda update pandas
source deactivate
EOF
Upvotes: 1