pipx command not found

In this troubleshooting guide we learn how to fix pipx command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

pipx: command not found

or when using sudo you get the following error message

sudo: pipx: command not found

Solutions to pipx: command not found

How To Fix pipx: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu pipx is provided by pipx package.

pipx is:

pipx allows you to…

  • Run the latest version of a CLI application from a package in a temporary virtual environment, leaving your system untouched after it finishes.
  • Install packages to isolated virtual environments, while globally exposing their CLI applications so you can run them from anywhere.
  • Easily list, upgrade, and uninstall packages that were installed with pipx.

pipx runs with regular user permissions, never calling “sudo pip install”.

To fix this problem, we can install more using the command below.

sudo apt-get -y install pipx

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install pipx.

sudo apt -y install pipx

Or if you have aptitude installed you can use the following command.

sudo aptitude install pipx

Summary

In this tutorial we learn how to fix pipx command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.