Python is one of the most popular programming languages in the world not only because of its simplicity and ease of use but also because it comes with pip. This built-in package installer makes installing third-party libraries and dependencies extremely easy.
However, as seamless as pip is, it’s not perfect and runs into errors occasionally. In this article, we’re talking about the “python setup.py egg_ info did not run successfully” error, its causes, and how to fix the problem.
Also read: How to fix Javascript error: ipython is not defined?
What causes the “python setup.py egg_ info did not run successfully” error?
The error is most likely to happen if your pip or setuptools installation is outdated, corrupt or installed improperly. Additionally, if your Python installation can’t locate the ez_setup file, you will experience such errors.
How to fix the “python setup.py egg_ info did not run successfully” error?
Here are three fixes you can try out.
Check and update pip
The first thing you should do is check if pip and setuptools are installed properly and is up to date. You can do this in the terminal using the –upgrade flag with Python. In case pip and setuptools are installed properly, check to see if there’s an update available and install it right away before trying again.
Check out our guide on how to fix version problems with pip here.
Update pip dependencies
There’s also a chance that pip’s dependencies may be causing problems. To ensure everything’s up to date, you can update setuptools and wheel using these commands once you’ve updated pip.
pip install –upgrade wheel
pip install –upgrade setuptools
Install the ez_setup module
Alternatively, you can also try installing the ez_setup module to check if the issue was with pip or the module itself. To do so, run either of the commands given below.
pip install ez_setup
Or
pip install unroll
Run a clean install
If nothing else works, your best bet is to uninstall Python from your PC and reinstall it again from scratch. This ensures that any wrong variables or modules that might be installed in the wrong places get removed, and everything else is done from the beginning in the correct order.