AWS

How to Install AWS Python SDK in Ubuntu

SDK, or the Software Development Kit for Amazon Web Services, can easily be installed in a Ubuntu Operating after performing the Prerequisites. To install the SDK, the user first needs to make sure to install and Configure the AWS CLI. After that, the SDK installation is done according to the programming environment selected by the user.

This post will teach how to install AWS SDK for Python in Ubuntu.

Step 1: Update the Package List

It is always a good idea to update the packages list with the APT command whenever installing or updating any software or application. Open up a terminal in your Ubuntu, and then type the command:

sudo apt update

Running this command will update the packages list on your Ubuntu installation:

Once the packages list has been updated, you can move on to the next step.

Step 2: Install pip3

The second step is to install the pip3 so the user can download the AWS python SDK. To download pip3, run the following command in the terminal:

sudo apt-get install python3-pip

If you are prompted about the download, then simply type “Y” and then press the “Enter” key:

After that, simply wait for the download process to complete fully. Once it is done, you can confirm its installation by typing the following command in the terminal:

pip3 --version

Upon execution of this command, you will see the following output on the terminal:

The output confirms that you have successfully installed the pip3 on your ubuntu.

Step 3: Install AWS Python SDK

Once the user has installed the pip3, he can then use it to install the AWS Python SDK, which is Boto3. To do that, run the following command

pip3 install boto3

After running the above command the download and installation process will begin on the terminal:

Once the installation process is done, the terminal will look this:

This confirms that you have successfully installed the boto3 which is the AWS SDK for Python on your Ubuntu OS.

Note: You might also want to learn how to install and configure AWS CLI to work with AWS Services from the terminal. Read here!

Conclusion

AWS provides the Software Development Kit for python to be installed using the pip3 library. The user needs first to update the apt list and then install the pip3. After that, use the pip3 to install the boto3. This post has taught you how to install AWS Python SDK.

About the author

Abdul Mannan

I am curious about technology and writing and exploring it is my passion. I am interested in learning new skills and improving my knowledge and I hold a bachelor's degree in computer science.