Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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 ?

like image 440
Dave Avatar asked Apr 13 '17 20:04

Dave


1 Answers

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 .

like image 99
mootmoot Avatar answered Nov 03 '22 02:11

mootmoot