Command "python setup.py egg_info" failed with error code 1 in /tmp/..../

Solution 1:

How to fix the pip9.exceptions.InstallationError

Make sure the version of your pip and setuptools is sufficient for manylinux2014 wheels.

A) System Install

sudo python3 -m pip install -U pip
sudo python3 -m pip install -U setuptools

B) Virtual Env / Pipenv

# Within the venv
pip3 install -U pip
pip3 install -U setuptools

Explanation

For me, python setup.py egg_info probably failed because of a recent change in python wheels, as manylinux1 wheels were replaced by manylinux2014 wheels according to open-cv faq.

Solution 2:

I solved a similar issue following this link https://www.edureka.co/community/69396/command-python-setup-info-failed-error-build-8nhf9w2t-grpcio and using the following command:

$ pip3 install --upgrade setuptools
$ pip3 install --upgrade pip