How to upgrade botocore1.2.6 to 1.4 or above present with boto3?

Dave picture Dave · Apr 13, 2017 · Viewed 26.7k times · Source

I have boto3 installed on my linux machine. When I pass below command, I get botocore version as 1.2.6

>>> import boto3
>>> print boto3.__version__
1.2.6

How to upgrade to botocore present within boto3 to 1.4 or latest version? In case I need to downgrade botocore 1.4 to botocore 1.2.6 , what are the steps ?

Answer

mootmoot picture mootmoot · Apr 18, 2017

If you use PIP

# upgrade
pip install botocore --upgrade
pip install boto3 --upgrade

# Specify version 
pip install botocore==1.2.6

(update)

As mentioend by @Kyle Bridenstine , you may need specify Pip version for python3.

IMHO, all python project should load under a python virtualenvironment, not matter it is under development, staging or production. This extra work will save your hassle to deal with explicit version requirement .