Traceback (most recent call last):
File "
File "/usr/local/lib/python3.5/dist-packages/sagemaker/__init__.py", line 15, in
from sagemaker import estimator
File "/usr/local/lib/python3.5/dist-packages/sagemaker/estimator.py", line 24, in
from sagemaker.model import Model
File "/usr/local/lib/python3.5/dist-packages/sagemaker/model.py", line 18, in
from sagemaker.session import Session
File "/usr/local/lib/python3.5/dist-packages/sagemaker/session.py", line 32, in
SDK_VERSION = pkg_resources.require('sagemaker')[0].version
File "/usr/local/lib/python3.5/dist-packages/pkg_resources/__init__.py", line 984, in require
needed = self.resolve(parse_requirements(requirements))
File "/usr/local/lib/python3.5/dist-packages/pkg_resources/__init__.py", line 875, in resolve
raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.ContextualVersionConflict: (botocore 1.7.48 (/home/karan/.local/lib/python3.5/site-packages), Requirement.parse('botocore<1.9.0,>=1.8.0'), {'boto3'})
Hi,
Seems like you might have previous version of botocore installed on your system. Could you try to upgrade the botocore with:
pip3 install -U botocore
After you upgrade this error should go away.
I had to uninstall and install botocore again.
Most helpful comment
Hi,
Seems like you might have previous version of botocore installed on your system. Could you try to upgrade the botocore with:
pip3 install -U botocore
After you upgrade this error should go away.