ActiveState has made it easy to install the latest version of Boto3. Copy and paste the snippet below into your terminal to install a verified, built-from-source version of Boto3 from ActiveState's free repository. We've taken care of all the dependencies so you don't have to.
pip3 install --index-url https://har.activestate.com/activestate/trusted-artifacts/latest boto3==1.20.21
The --index-url
parameter tells pip to install the package from ActiveState's repository.
ActiveState | PyPI | Anaconda / conda | |
---|---|---|---|
Built from source codeWe build all packages from known and vetted source code. The source code is stored indefinitely on our secure supply chain. This reduces the likelihood of specific types of exploits while eliminating typosquatting. | Varies | Varies | |
Support for OS-level dependenciesArtifact dependencies extend to the operating-system level. For example, when building XML libraries for Python, we also build Expat from its C source files. | |||
Vetted new source releasesSource is updated as new versions are released, but after a manual and automatic review process and at 24-48 hour delay compared to the main public repository. | Varies | ||
Artifacts built for Linux, MacOS, Windows | |||
Isolated and ephemeral build environmentsBuild stages are conducted in single-use build environments that are discarded after the build is complete. Builds are run automatically based on known and version-controlled configurations. | Varies | ||
Revision-controlled build historyThe ActiveState Platform maintains a catalog of all source code used to build artifacts, along with all available metadata. This information is revision-controlled and immutable (except when a change is essential for security or privacy reasons). | Varies | ||
Machine-readable SBOMWe store all provenance metadata available for all artifacts, exposing it as machine-readable SBOM files. | |||
Supply chain levels for Software Artifacts (SLSA) Level 4SLSA is led by an initial cross-organization, vendor-neutral steering group committed to improving the security ecosystem for everyone. SLSA Level 4 requires two-person review of all changes and a hermetic, reproducible build process. |
Our enterprise-grade platform can help streamline your Python, Perl & Tcl workflows.
For more than 20 years, ActiveState has been making open source easier, more secure, and less risky.
Boto3 is used to create, config, and manage AWS services (Amazon Web Services) via the AWS CLI, such as Amazon Elastic Compute Cloud (Amazon EC2) and Amazon Simple Storage Service (Amazon S3). The SDK provides an object-oriented API, as well as low-level access to AWS services.
Boto3 is compatible with Python 3.6 and any later version of Python. Following a multi-year process of phasing it out, versions of boto3 and botocore released after January 1, 2020 no longer work with Python 2.7
Boto3 has the following dependencies, which will be installed automatically when installing Boto3.
Copy (either ctrl+c or just click the “copy” button) and paste the snippet at the top of this page into your command line. As with all Python packages installed with Python’s default package manager, pip, Boto3 will be installed to %PYTHONHOME%/site-packages.
You can also work in a virtual environment to prevent conflicts. You can use pip to install a specific version of the Boto3 package into a virtual environment for Python 3 projects with the following command:
python3 -m venv <path_to_env>
venv will create a virtual Python installation in the <env_name> folder.
Activate <env_name> with the following command:
On Linux
source <env_name>/bin/activate
On Windows
You can pip install Boto3 into your virtual environment with the following command:
python -m pip install boto3
As with all Python packages installed with pip, Boto3 will be installed to %PYTHONHOME%/site-packages. This will always be true for global installations of boto3. If you’re using a virtual environment (like virtualenv), boto3 will be installed differently, depending (for example) on where you created the directory for your virtual environment.
Once you install boto, you can then import boto3 into your project.
Yes, boto3 will work Windows, Mac, and Linux (Ubuntu, CentOS, RHEL, etc.)
Boto3 is the AWS SDK (software development kit) for Python. Boto3 is commonly used to directly create, update, and delete AWS resources from your Python scripts. Read the docs or the Readme on Github.com.