sagemaker-python-sdk
sagemaker-python-sdk copied to clipboard
AttributeError: module 'sagemaker' has no attribute 'Session'
你好 我尝试sagemaker jupyter notebook。
%pip install --quiet --upgrade transformers datasets sagemaker s3fs import sagemaker sess = sagemaker.Session() 发现就不可以,报错 AttributeError: module 'sagemaker' has no attribute 'Session'
Sagemaker Python SDK recently launched a new major version (version 3.0.0) which has changed the structure of Python SDK. You can pin the version of sagemaker to be strictly less than 3.0 to retrieve the Session class from sagemaker (and fix the error you are currently encountering).