Fix Command “python setup.py egg_info” failed with error code 1 – Python Tutorial

By | November 30, 2021

When we are using python pip to install some packages, we may get this error: Command “python setup.py egg_info” failed with error code 1. In this tutorial, we will introduce how to fix this problem.

For example, we try to install asteroid using pip.

pip install asteroid

Then you will find pesq package can not be installed.

pip install asteroid example

You will find an error like below:

Fix Command "python setup.py egg_info" failed with error code 1 - Python Tutorial

How to fix this python setup.py egg_info error?

We can run code below to fix this error:

 pip install --upgrade setuptools

Then we continue to install asteroid, we will find this error is fixed.

pip install asteroid successfully

Leave a Reply

Your email address will not be published. Required fields are marked *