PIP-Talk - Week 33

PIP-Talk - Week 33!

Every week going forward I plan to write a little about interesting modules/libraries available for Python. The topic for this week is: pipx

Background: pipx

Install and Run Python Applications in Isolated Environments.

pipx is a tool to help you install and run end-user applications written in Python. It’s roughly similar to macOS’s brew, JavaScript’s npx, and Linux’s apt. It’s closely related to pip. In fact, it uses pip, but is focused on installing and managing Python packages that can be run from the command line directly as applications.

Install

python3 -m pip install --user pipx
python3 -m pipx ensurepath

Install a python application

pipx install pycowsay

or

pipx install glances

List installed python application

pipx list

Run a installed python application

pycowsay howdy

or

glances

You can even run a application without installing it, with the run command like this:

pipx run glances