Skip to content


Pipx is a command line tool to install and run Python applications in isolated environments.

Very useful not to pollute your user or device python environments.


pip install pipx


Now that you have pipx installed, you can install a program:

pipx install PACKAGE

for example

pipx install pycowsay

You can list programs installed:

pipx list

Or you can run a program without installing it:

pipx run pycowsay moooo!

You can view documentation for all commands by running pipx --help.


You can use pipx upgrade-all to upgrade all your installed packages. If you want to just upgrade one, use pipx upgrade PACKAGE.

If the package doesn't change the requirements of their dependencies so that the installed don't meet them, they won't be upgraded unless you use the --pip-args '--upgrade-strategy eager' flag.

It uses the pip flag upgrade-strategy which can be one of:

  • eager: dependencies are upgraded regardless of whether the currently installed version satisfies the requirements of the upgraded package(s).
  • only-if-needed: dependencies are upgraded only when they do not satisfy the requirements of the upgraded package(s). This is the default value.