Python Pip

pip(1) is the primary package management toolchain for Python. Compare to pipx.


Installation

pip(1) is included in most Python installations. Some Linux and BSD distributions modify it.


Usage

On Linux and BSD distributions, there is typically a better solution for installing Python-based applications. Check your distribution's package manager first. Reasons being:

There is always a better solution for installing Python libraries. See venv. Reasons being:

Global installation packages can be found in /usr/lib/python#.#/site-packages, with executable scripts typically added to /usr/bin.

To force user-only installation of a module or application, add the --user flag. Packages installed this way are found in ~/.local/lib/python#.#/site-packages, with executable scripts added to ~/.local/bin.

Configuration

Pip will by default noisily complain about the format of its output. To suppress the complaint without changing the output itself, explicitly set the default behavior:

export PIP_FORMAT=columns


See also

Upstream project documentation


CategoryRicottone

Python/Pip (last edited 2024-02-17 16:41:40 by DominicRicottone)