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
sudo apt install pipxFlags
Examples
pipx -hpipx install <package>pipx run <package>pipx listpipx upgrade <package>pipx uninstall <package>pipx ensurepath