How To Solve The Error: Command “Python Setup.Py Egg_info” Failed With Error Code 1

The command “python egg_info” failed with error code 1 is a standard error that can occur when trying to install a Python package. This error can be caused by several issues, such as missing dependencies or permissions errors. 

To solve this error, you will need to identify the root cause and take corrective action. In this article, we’ll reveal how to do that. 

How Did The Error Occur?

If you try to install some modules on your computer using the command “python egg_info”, you may receive the following error message.

Here is the error: Command “python egg_info” failed with error code 1 in C:\Users\ssc\AppData\Local\Temp\pip-build-wa7uco0k\unroll\

This error typically occurs when you don’t have permission to write to the folder where the module is being installed. You can try three methods we will introduce in the following sections to fix this. Scroll down now to explore!

3 Amazing Tricks To Solve The command “python egg_info” failed with error code 1 Issue

Here are three major solutions to fix the mentioned above error. 

Trick 1

A few different things can cause the above error, but upgrading your pip installation is usually the solution.

You need to run the following command in your terminal: python -m pip install –upgrade pip and then try running pip install “your-package-name.” You can complete the command without any errors now.

Trick 2

Another solution is to upgrade setuptools. To do this, you open a terminal and run the following command: pip install setuptools. And that will install the latest version of setuptools into your virtual environment.   

To upgrade to the newest version, you can use this content: pip install –upgrade setuptools

Then, make sure you don’t miss a resource module, ez_setup. If so, then you must enter this command:

pip install ez_setup

This will update setuptools and allow you to install packages using pip once again.

Finally, install the package that you are testing:
pip install "your-package-name"

If that doesn’t work, you may need to uninstall setuptools and reinstall it with the -U flag.

Trick 3

In the final solution, we have provided two lines of command that you can run to fix the issues. 

easy_install -U setuptools
pip install "your-package-name"

Easy_install is a python package installer. It can be used to install setuptools, a tool used to build python packages.


In conclusion, there are a few possible solutions to the command “python egg_info” failed with error code 1 error. First, make sure that the Python installation is correct and functioning properly. 

Second, check to see if the package you are trying to install is already included in the Python installation. If not, you can either try to find and install the package online or compile it from the source code. Thanks for reading!

Related Articles
Scroll to Top