pip-extra-reqs command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
pip-extra-reqs: command not found
or when using sudo you get the following error message
sudo: pip-extra-reqs: command not found
Solutions to pip-extra-reqs: command not found
How To Fix pip-extra-reqs: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu pip-extra-reqs is provided by pip-check-reqs package.
pip-check-reqs is:
It happens: you start using a module in your project and it works and you don’t realise that it’s only being included in your virtualenv because it’s a dependency of a package you’re using. pip-missing-reqs finds those modules so you can include them in the requirements.txt for the project.
Alternatively, you have a long-running project that has some packages in requirements.txt that are no longer actively used in the codebase. The pip-extra-reqs tool will find those modules so you can remove them.
To fix this problem, we can install more using the command below.
sudo apt-get -y install pip-check-reqs
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install pip-check-reqs.
sudo apt -y install pip-check-reqs
Or if you have aptitude installed you can use the following command.
sudo aptitude install pip-check-reqs
Summary
In this tutorial we learn how to fix pip-extra-reqs command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.