Boto3 is the Amazon Web Service(AWS) software development Kit(SDK) for Python. Which allows Python developers to write software that makes user of services like Amazon S3 and Amazon EC2.
To install Boto3 with Python version 3.6, you need "pip" module. If you're running Python 2.7.9+ or Python 3.4+ (which is the case here), you should already have "pip" installed. You can simply test it:
$ python3 -m pip help Usage: /usr/local/opt/python/bin/python3.6 -m pip <command> [options] Commands: install Install packages. download Download packages. uninstall Uninstall packages. freeze Output installed packages in requirements format. list List installed packages. show Show information about installed packages. check Verify installed packages have compatible dependencies. search Search PyPI for packages. wheel Build wheels from your requirements. hash Compute hashes of package archives. completion A helper command used for command completion. help Show help for commands. ...
If you don't have "pip" already installed, you can install "pip" module by:
Debian: $ sudo apt-get install python3-pip CentOS: $ sudo yum install python36-setuptools $ sudo easy_install pip Or the manual way: # Download get-pip.py file (https://bootstrap.pypa.io/get-pip.py) # Then run the following: $ python3 get-pip.py
To install Boto3:
$ python3 -m pip install boto3 Collecting boto3 Downloading boto3-1.6.11-py2.py3-none-any.whl (128kB) 100% |████████████████████████████████| 133kB 1.5MB/s Collecting s3transfer<0 .2.0="">=0.1.10 (from boto3) Downloading s3transfer-0.1.13-py2.py3-none-any.whl (59kB) 100% |████████████████████████████████| 61kB 3.7MB/s Collecting botocore<1 .10.0="">=1.9.11 (from boto3) Downloading botocore-1.9.11-py2.py3-none-any.whl (4.1MB) 100% |████████████████████████████████| 4.1MB 347kB/s Collecting jmespath<1 .0.0="">=0.7.1 (from boto3) Downloading jmespath-0.9.3-py2.py3-none-any.whl Collecting docutils>=0.10 (from botocore<1 .10.0="">=1.9.11->boto3) Downloading docutils-0.14-py3-none-any.whl (543kB) 100% |████████████████████████████████| 552kB 2.1MB/s Collecting python-dateutil<2 .7.0="">=2.1 (from botocore<1 .10.0="">=1.9.11->boto3) Downloading python_dateutil-2.6.1-py2.py3-none-any.whl (194kB) 100% |████████████████████████████████| 194kB 4.3MB/s Collecting six>=1.5 (from python-dateutil<2 .7.0="">=2.1->botocore<1 .10.0="">=1.9.11->boto3) Downloading six-1.11.0-py2.py3-none-any.whl Installing collected packages: jmespath, docutils, six, python-dateutil, botocore, s3transfer, boto3 Successfully installed boto3-1.6.11 botocore-1.9.11 docutils-0.14 jmespath-0.9.3 python-dateutil-2.6.1 s3transfer-0.1.13 six-1.11.0 1>2>1>2>1>1>1>0>
No comments:
Post a Comment