I'm trying to run a SageMaker kernel with Python 3.8 in SageMaker Studio, and the notebook appears to use a separate distribution of Python 3.7. The running app is indicated as tensorflow-2.6-cpu-py38-ubuntu20.04-v1. When I run !python3 -V
I get Python 3.8.2. However, the Python instance inside the notebook is different:
import sys
sys.version
gives '3.7.12 | packaged by conda-forge | (default, Oct 26 2021, 06:08:21) \n[GCC 9.4.0]'
Similarly, running %pip -V
and %conda info
indicates Python 3.7.
Also, import tensorflow
fails, as it isn't preinstalled in the Python environment that the notebook invokes.
I'm running in the eu-west-2 region. Is there anything I can do to address this short of opening a support ticket?