Pip install error. Setuptools.command not found

Elaborating @elyase's Answer. First check for which python version you want to install setuptools. Normally both python versions comes default with debian or any linux distro. So, as per your requirement install setup tools using apt package manager

For python 2.x

sudo apt-get install python-setuptools

For python 3.x

sudo apt-get install python3-setuptools

Try installing:

sudo apt-get install python-setuptools

if this doesn't work try:

curl -O https://bootstrap.pypa.io/get-pip.py
python get-pip.py

Edit: If you have several (possible conflicting) python installations or environments, the following commands can be useful to debug which executables are being used:

which python
which pip
which easy_install

They should "match". It can happen for example that you have pip installing packages for an EPD or global distribution while the current python that is being used corresponds to a local environment (or something different), in which case it might not be able to see the installed packages.


These instructions solved the problem for me:

first enter these commands

    pip install --upgrade pip
    pip install --upgrade wheel
    pip install setuptools

and then try to install the package that requires setuptools.


had the same problem, solved it with

pip install -U setuptools