How To Install python3-urllib3 on Ubuntu 20.04

In this tutorial we learn how to install python3-urllib3 on Ubuntu 20.04. python3-urllib3 is HTTP library with thread-safe connection pooling for Python3 HTTP library with thread-safe connection pooling for Python3

Introduction

In this tutorial we learn how to install python3-urllib3 on Ubuntu 20.04.

What is python3-urllib3

python3-urllib3 is:

urllib3 supports features left out of urllib and urllib2 libraries.

  • Re-use the same socket connection for multiple requests (HTTPConnectionPool and HTTPSConnectionPool) (with optional client-side certificate verification).
  • File posting (encode_multipart_formdata).
  • Built-in redirection and retries (optional).
  • Supports gzip and deflate decoding.
  • Thread-safe and sanity-safe.
  • Small and easy to understand codebase perfect for extending and building upon.

This package contains the Python 3 version of the library. Task: server, ubuntu-desktop-minimal, ubuntu-desktop, cloud-image, openssh-server, ubuntu-core, kubuntu-desktop, xubuntu-core, xubuntu-desktop, lubuntu-desktop, ubuntustudio-desktop-core, ubuntustudio-desktop, ubuntukylin-desktop, ubuntu-mate-core, ubuntu-mate-desktop, ubuntu-budgie-desktop

Package: python3-urllib3 Architecture: all Version: 1.25.8-2 Priority: optional Section: python Source: python-urllib3 Origin: Ubuntu Maintainer: Ubuntu Developers [email protected] Original-Maintainer: Debian Python Modules Team [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 413 Depends: python3:any, python3-six Recommends: ca-certificates Suggests: python3-cryptography, python3-idna, python3-openssl, python3-socks Filename: pool/main/p/python-urllib3/python3-urllib3_1.25.8-2_all.deb Size: 88056 MD5sum: 2276097ae489f5cbe0120b5d821b4d65 SHA1: 1b5ea5c3080fd529df0b9ee9ea25a6dd306f9ae5 SHA256: eae2e3ef470269d28255d67d116aba78e55e82366d0d9354bfd11f163ef71d37 Homepage: https://urllib3.readthedocs.org Description-en: HTTP library with thread-safe connection pooling for Python3 urllib3 supports features left out of urllib and urllib2 libraries.

  • Re-use the same socket connection for multiple requests (HTTPConnectionPool and HTTPSConnectionPool) (with optional client-side certificate verification).
  • File posting (encode_multipart_formdata).
  • Built-in redirection and retries (optional).
  • Supports gzip and deflate decoding.
  • Thread-safe and sanity-safe.
  • Small and easy to understand codebase perfect for extending and building upon.

This package contains the Python 3 version of the library. Task: server, ubuntu-desktop-minimal, ubuntu-desktop, cloud-image, openssh-server, ubuntu-core, kubuntu-desktop, xubuntu-core, xubuntu-desktop, lubuntu-desktop, ubuntustudio-desktop-core, ubuntustudio-desktop, ubuntukylin-desktop, ubuntu-mate-core, ubuntu-mate-desktop, ubuntu-budgie-desktop

There are three methods to install python3-urllib3 on Ubuntu 20.04. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install python3-urllib3 Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install python3-urllib3 using apt-get by running the following command:

sudo apt-get -y install python3-urllib3

Install python3-urllib3 Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install python3-urllib3 using apt by running the following command:

sudo apt -y install python3-urllib3

Install python3-urllib3 Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install python3-urllib3 using aptitude by running the following command:

sudo aptitude -y install python3-urllib3

How To Uninstall python3-urllib3 on Ubuntu 20.04

To uninstall only the python3-urllib3 package we can use the following command:

sudo apt-get remove python3-urllib3

Uninstall python3-urllib3 And Its Dependencies

To uninstall python3-urllib3 and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:

sudo apt-get -y autoremove python3-urllib3

Remove python3-urllib3 Configurations and Data

To remove python3-urllib3 configuration and data from Ubuntu 20.04 we can use the following command:

sudo apt-get -y purge python3-urllib3

Remove python3-urllib3 configuration, data, and all of its dependencies

We can use the following command to remove python3-urllib3 configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge python3-urllib3

References

Summary

In this tutorial we learn how to install python3-urllib3 package on Ubuntu 20.04 using different package management tools: apt, apt-get and aptitude.