How to install boto3 in Windows on CloudFerro Cloud

Introduction

The boto3 library for Python can be used to list and download items from a specified S3 bucket. In this article, you will install boto3 on a Windows system.

Step 1: Ensure that Python 3 is preinstalled

On a desktop Windows system

To run boto3, you need to have Python installed.

If you are running Windows on a desktop computer, the first step of this article shows how to install Python: How to install OpenStackClient GitBash for Windows on CloudFerro Cloud.

On a virtual machine running in CloudFerro Cloud cloud

Virtual machines created in the CloudFerro Cloud cloud usually have Python 3 already preinstalled.

If you want to create your own Windows VM, two steps are involved:

  1. Log in to your CloudFerro Cloud hosting account with access to the Horizon interface: https://horizon.cloudferro.com/auth/login/?next=/.

  2. Use an existing Windows instance or create a new one.

For more information, see Connecting to a Windows VM via RDP through a Linux Bastion Host port forwarding on CloudFerro Cloud.

Step 2: Install boto3 on Windows

To install boto3 on Windows:

  1. Log in as administrator.

  2. Click the Windows icon in the bottom-left corner of your desktop.

  3. Find Command Prompt by entering cmd.

../_images/boto1.png

Verify that you have an up-to-date Python installation:

python -V
../_images/boto2.png

Install boto3 with the following command:

pip install boto3
../_images/boto3.png

Verify the installation:

pip show boto3
../_images/boto4.png

What to do next