Reputation: 567
So that I am able to work with it within my python scripts?
Upvotes: 53
Views: 117217
Reputation: 23
If you're on a mac, by far the simplest way to install is to use easy_install
sudo easy_install boto3
Upvotes: 0
Reputation: 949
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
Upvotes: 1
Reputation: 701
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.
Upvotes: 1
Reputation: 951
If necessary, install pip:
sudo apt-get install python-pip
Then install boto:
pip install -U boto
Upvotes: 73
Reputation: 304403
$ easy_install boto
Edit: pip is now by far the preferred way to install packages
Upvotes: 15
Reputation: 411
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
Upvotes: 2
Reputation: 1433
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.
Upvotes: 1
Reputation: 9359
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
Upvotes: 36
Reputation: 799210
switch to the boto-*
directory and type python setup.py install
.
Upvotes: 5