System Servicespythonpipvirtualenvpackage-managementcli-apps

pipx

pipx executes binaries from Python packages in isolated virtual environments. It allows running CLI applications globally without affecting the system Python installation.

Description

pipx enables users to run the latest version of CLI applications from Python packages in temporary virtual environments, ensuring the system remains untouched. It supports installing packages into isolated virtual environments while exposing their CLI applications globally for easy access from anywhere. Additionally, pipx facilitates listing, upgrading, and uninstalling these packages, all with regular user permissions, avoiding the need for 'sudo pip install'.

Use cases include safely testing and using Python CLI tools without polluting the global Python environment. It is particularly useful for developers and security professionals who need to manage multiple Python applications independently on Kali Linux systems.

pipx operates without root privileges by default, promoting secure package management practices.

How It Works

pipx installs Python packages into isolated virtual environments located at /root/.local/share/pipx/venvs. It creates symlinks to the applications in /root/.local/bin and to manual pages in /root/.local/share/man, making them globally accessible. Environment variables like PIPX_HOME, PIPX_BIN_DIR, and others allow customization of locations. Binaries can be run in temporary virtual environments or installed persistently, with support for global operations using --global flag.

Installation

bash
sudo apt install pipx

Flags

-h, --helpshow this help message and exit
--quiet, -qGive less output. May be used multiple times corresponding to the ERROR and CRITICAL logging levels. The count maxes out at 2.
--verbose, -vGive more output. May be used multiple times corresponding to the INFO, DEBUG and NOTSET logging levels. The count maxes out at 3.
--globalPerform action globally for all users.
--versionshow program's version number and exit

Examples

Display the help message and usage information for pipx.
pipx -h
Install a Python package into an isolated virtual environment with global CLI access.
pipx install <package>
Run a package directly in a temporary virtual environment without permanent installation.
pipx run <package>
List all packages installed with pipx.
pipx list
Upgrade a specific package installed with pipx.
pipx upgrade <package>
Uninstall a package and remove its virtual environment.
pipx uninstall <package>
Ensure pipx bin directory is in PATH for global access to symlinked apps.
pipx ensurepath
Updated 2026-04-16kali.org ↗