close

[Solved] Command “python setup.py egg_info” failed with error code 1 in /tmp/pip-build-rnhk49o3/opencv-python/

Hello Guys, How are you all? Hope You all Are Fine. Today I get the following error Command “python setup.py egg_info” failed with error code 1 in /tmp/pip-build-rnhk49o3/opencv-python/ in Python. So Here I am Explain to you all the possible solutions here.

Without wasting your time, Let’s start This Article to Solve This Error.

How Command “python setup.py egg_info” failed with error code 1 in /tmp/pip-build-rnhk49o3/opencv-python/ Error Occurs?

Today I get the following error Command “python setup.py egg_info” failed with error code 1 in /tmp/pip-build-rnhk49o3/opencv-python/ in Python.

How To Solve Command “python setup.py egg_info” failed with error code 1 in /tmp/pip-build-rnhk49o3/opencv-python/ Error ?

  1. How To Solve Command “python setup.py egg_info” failed with error code 1 in /tmp/pip-build-rnhk49o3/opencv-python/ Error ?

    To Solve Command “python setup.py egg_info” failed with error code 1 in /tmp/pip-build-rnhk49o3/opencv-python/ Error It requires to upgrade your pip version pip install –upgrade pip

Solution 1

How to fix the pip9.exceptions.InstallationError

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

sudo python3 -m pip install -U pip
sudo python3 -m pip 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

Solution 3

It requires to upgrade your pip version

pip install –upgrade pip

Summery

It’s all About this issue. Hope all solution helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you? Thank You.

Also Read

Leave a Comment