sagemaker-python-sdk icon indicating copy to clipboard operation
sagemaker-python-sdk copied to clipboard

Unable to install sagemaker using pip3 and python3 (3.5.2) on ubuntu 16.04

Open karanrn opened this issue 8 years ago • 2 comments

Traceback (most recent call last): File "", line 1, in 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'})

karanrn avatar Dec 06 '17 09:12 karanrn

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.

lukmis avatar Dec 06 '17 16:12 lukmis

I had to uninstall and install botocore again.

karanrn avatar Dec 07 '17 03:12 karanrn