How to install boto?

So, can I work with it in my python scripts?

+42
python installation boto
Mar 20 2018-10-10T00:
source share
9 answers
  • Install pip if necessary:

    sudo apt-get install python-pip

  • Then install boto:

    pip install -U boto

+59
Nov 19 '11 at 3:08
source share

The installation of Boto depends on the operating system. For example, for example, on Ubuntu you can use the aptitude command:

 sudo apt-get install python-boto 

Or you can download the boto code from your website and go to the unpacked directory to run

 python setup.py install 
+32
Aug 30 '10 at 18:08
source share
 $ easy_install boto 

Edit: pip is now the preferred way to install packages.

+13
Mar 20 '10 at 0:26
source share

switch to the boto-* directory and enter python setup.py install .

+4
Mar 20 '10 at 0:15
source share

The best way to install boto in my opinion is to use:

 pip install boto-1.6 

This ensures that you have the boto glacier code.

+1
Nov 06
source share
+1
May 16 '14 at 4:06
source share

Having tried

 pip install boto 

i am facing an error

 ImportError: No module named pkg_resources 

To solve this issue, run another command to handle setuptools using curl

 curl https://bootstrap.pypa.io/ez_setup.py | python 

After that, the next command will work fine.

 pip install boto 
+1
Jun 09 '17 at 11:02 on
source share

If you already installed in one version of python and then install a higher version of python, boto will not be found in the new version of python.

For example, I had python2.7 and then installed python3.5 (keeping both). My script under python3.5 could not find boto. Running " pip install boto " informed me that boto was already installed in /usr/lib/python2.7/dist-packages .

So i did

 pip install --target /usr/lib/python3.5/dist-packages boto 

This allowed my script under python3.5 to find boto.

0
Feb 24 '17 at 10:03
source share

If you are on a poppy, the easiest way to install is to use easy_install

 sudo easy_install boto3 
0
Oct 17 '17 at 16:18
source share



All Articles