Reportingpythonpackageinstallerpipvirtualenv

python-pip

pip is the Python package installer for installing, managing, and uninstalling Python packages. It supports virtual environments, version control repositories, and non-egg sources.

Description

python-pip provides pip, the standard package manager for Python packages. The python3-pip package delivers the Python 3 version, which integrates seamlessly with virtualenv, avoids partial installs, saves package state for reproducibility, and supports installation from diverse sources including version control repositories.

Key use cases include installing Python dependencies for security tools, managing project environments, and generating lock files for consistent deployments. The tool offers comprehensive commands for package lifecycle management from installation to inspection and cache management.

pip operates through distinct packages: python3-pip for core functionality (9.53 MB) and python3-pip-whl (1.46 MB) for wheel support in virtual environments, ensuring compatibility with PEP 427 standards.

How It Works

pip manages Python packages by resolving dependencies, downloading from PyPI or custom indexes, and installing wheels or source distributions. It maintains an isolated wheel cache, supports hash verification for security, and generates lock files capturing exact package versions and dependencies for reproducible environments. Virtualenv integration ensures isolated Python environments.

Installation

bash
sudo apt install python3-pip

Flags

-h, --helpShow help.
--debugLet unhandled exceptions propagate outside the main subroutine, instead of logging them to stderr.
--isolatedRun pip in an isolated mode, ignoring environment variables and user configuration.
--require-virtualenvAllow pip to only run in a virtual environment; exit with an error otherwise.

Examples

Show help for pip commands and general options.
pip -h
Show help for pip3 commands and general options.
pip3 -h
Install packages.
pip install
Generate a lock file.
pip lock
Download packages.
pip download
Uninstall packages.
pip uninstall
Output installed packages in requirements format.
pip freeze
List installed packages.
pip list
Updated 2026-04-16kali.org ↗