Python Pip


Forewarning

If running a Linux distribution, the first thing to check is your package manager. This will preempt difficult-to-debug issues with versioning, file permissions, and dependencies.


Pip

pip(1) is the built-in tool for installing a Python package, either locally or from a repository such as PyPI.

Scope

By default, packages are installed globally. This is not a desirable behavior and is maintained by upstream for the sole reason of backwards compatibility. Global packages are found in /usr/lib/python#.#/site-packages, with executable scripts typically added to /usr/bin.

To install a package as a user, 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


CategoryRicottone