

When installing a Python module globally, it is highly recommended to install the module’s deb package with the apt Users are encouraged to switch to Python 3. Starting from Ubuntu 20.04, Python 3 is included in the base system installation, and Python 2 is available for installation from the Universe repository. Python comes in two flavors Python 2 and Python 3. We will also walk you through the basics of installing and otherwise managing Python packages with pip.

This guide explains how to install pip for Python 3 and Python 2 on Ubuntu 20.04.

With pip, you can search, download, and install packages from Python Package Index (PyPI) and other package indexes. Pip is a tool for installing Python packages.
