Installing Boto3 library in Python virtual environment
Throughout the course we'll be using Python virtual environment to store and manage any required third-party modules, such as Boto3, for example.
This is a best practice to store and manage all required Python project modules separately.
Project source code
Python virtual environment
To create Python virtual environment use the following commands in your Cloud9 IDE:
- mkdir -p python-boto3-course
- python3 -m venv ./.venv
Let's activate our virtual environment:
- source ./.venv/bin/activate
After that we need to update Python package manager (PIP) and install Boto3 library:
- pip install --upgrade pip boto3
Test script we develop in this lesson is called installation_test.py and it is located in the boto3-installation folder inside our project folder.