So that I am able to work with it within my python scripts?
-
What was wrong with http://code.google.com/p/boto/wiki/RunningFromSubversion? This seems perfectly clear. What didn't you like? What confused you? – S.Lott Mar 20 '10 at 12:32
-
2On CentOS: yum install python-boto – WooDzu Feb 24 '14 at 17:36
9 Answers
If necessary, install pip:
sudo apt-get install python-pip
Then install boto:
pip install -U boto
-
3
-
-
@TroodoN-Mike the `-U` is short for `--upgrade` which tells pip to "Upgrade all specified packages to the newest available version". So if boto is already installed, it will update it to the latest version. – Michael J Jun 13 '17 at 20:34
Installing Boto depends on the Operating system. For e.g in Ubuntu you can use the aptitude command:
sudo apt-get install python-boto
Or you can download the boto code from their site and move into the unzipped directory to run
python setup.py install

- 8,991
- 13
- 50
- 69
-
10Using apt-get gave me an old version of boto. For the lastest version, this works: `git clone https://github.com/boto/boto.git; cd boto; sudo python setup.py install` – Tyler Aug 31 '11 at 04:08
-
2Nowadays pip is the appropriate way of doing this. See the pip answer below. – Jordan Aug 21 '12 at 17:43
$ easy_install boto
Edit: pip is now by far the preferred way to install packages

- 295,403
- 53
- 369
- 502
switch to the boto-*
directory and type python setup.py install
.

- 776,304
- 153
- 1,341
- 1,358
install pip: https://pip.pypa.io/en/latest/installing.html
insatll boto: https://github.com/boto/boto
$ git clone git://github.com/boto/boto.git
$ cd boto
$ python setup.py install

- 411
- 5
- 9
Best way to install boto in my opinion is to use:
pip install boto-1.6
This ensures you'll have the boto glacier code.

- 1,433
- 1
- 9
- 2
-
1I know this is an old answer, but you probably shouldn't specify this version now that there's newer versions. – Will Apr 08 '14 at 14:33
If you already have boto installed in one python version and then install a higher python version, boto is not found by 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. Doing "pip install boto
" told 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.

- 663
- 1
- 9
- 20
While trying out the
pip install boto
command, I encounter the error
ImportError: No module named pkg_resources
To resolve this, issue another command to handle the setuptools using curl
curl https://bootstrap.pypa.io/ez_setup.py | python
After doing that, the following command will work perfectly.
pip install boto

- 909
- 2
- 11
- 25