pex command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
pex: command not found
or when using sudo you get the following error message
sudo: pex: command not found
Solutions to pex: command not found
How To Fix pex: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu pex is provided by pex package.
pex is:
pex is a library for generating .pex (Python EXecutable) files which are executable Python environments in the spirit of virtualenvs. pex is an expansion upon the ideas outlined in PEP 441 and makes the deployment of Python applications as simple as cp. pex files may even include multiple platform-specific Python distributions, meaning that a single pex file can be portable across Linux and OS X.
pex files can be built using the pex tool. Build systems such as Pants and Buck also support building .pex files directly.
This is the command line package.
To fix this problem, we can install more using the command below.
sudo apt-get -y install pex
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install pex.
sudo apt -y install pex
Or if you have aptitude installed you can use the following command.
sudo aptitude install pex
Summary
In this tutorial we learn how to fix pex command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.