close

[Fixed] Command “python setup.py egg_info” failed with error code 1

Today We are Going To Solve Command “python setup.py egg_info” failed with error code 1 in Python. Here we will Discuss All Possible Solutions and How this error Occurs So let’s get started with this Article.

How to Fix Command “python setup.py egg_info” failed with error code 1 Error?

  1. How to Fix Command “python setup.py egg_info” failed with error code 1 Error?

    To Fix Command “python setup.py egg_info” failed with error code 1 Error just Upgrade pip. You have to upgrade pip to solve this error. You can use the below commands for that: python -m pip install --upgrade pip pip install "package-name"

  2. Command “python setup.py egg_info” failed with error code 1

    To Fix Command “python setup.py egg_info” failed with error code 1 Error just Install python-dev libpq-dev. First of all, run the below command to install python-dev libpq-dev sudo apt-get install python-dev libpq-dev Then go to your virtual env and run the below command to solve this error. pip install psycopg2

Solution 1 : Upgrade pip

You have to upgrade pip to solve this error. You can use the below commands for that:

python -m pip install --upgrade pip
pip install "package-name"

Solution 2 : Install python-dev libpq-dev

First of all, run the below command to install python-dev libpq-dev

sudo apt-get install python-dev libpq-dev

Then go to your virtual env and run the below command to solve this error.

pip install psycopg2

Conclusion

So these were all possible solutions to this error. I hope your error has been solved by this article. In the comments, tell us which solution worked? If you liked our article, please share it on your social media and comment on your suggestions. Thank you.

Also Read These Solutions

Leave a Comment