close

[Solved] ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output

Hello Guys, How are you all? Hope You all Are Fine. Today I am trying to install django-heroku And I am facing following error ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output 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 ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output Error Occurs ?

I am trying to install django-heroku And I am facing following error.

Error: pg_config executable not found.

pg_config is required to build psycopg2 from source.  Please add t .   he directory
containing pg_config to the $PATH or specify the full executable
path with the
option:

    python setup.py build_ext --pg-config /path/to/pg_config build ...

or with the pg_config option in 'setup.cfg'.

If you prefer to avoid building psycopg2 from source, please
install the PyPI
'psycopg2-binary' package instead.

For further information please check the 'doc/src/install.rst' file
(also at
<http://initd.org/psycopg/docs/install.html>).

----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py
egg_info Check the logs for full command output.

How To Solve ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output Error ?

  1. How To Solve ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output Error ?

    To Solve ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output Error This command worked for me on Ubuntu. sudo apt-get install libpq-dev. If you are using macOS then simply run this command And your error will be solve. brew install postgresql. You just need to install libpq-dev and python-dev using following command. Or Just need to add the package containing the executable pg_config. And pg_config is in postgresql-devel.

  2. ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output

    To Solve ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output Error This command worked for me on Ubuntu. sudo apt-get install libpq-dev. If you are using macOS then simply run this command And your error will be solve. brew install postgresql. You just need to install libpq-dev and python-dev using following command. Or Just need to add the package containing the executable pg_config. And pg_config is in postgresql-devel.

Solution 1: Use this command

This command worked for me on Ubuntu.

sudo apt-get install libpq-dev

Solution 2: For macOS

If you are using macOS then simply run this command And your error will be solve.

brew install postgresql

Solution 3: Just Install python-dev && libpq-dev

You just need to install libpq-dev and python-dev using following command.

sudo apt-get install libpq-dev python-dev

Solution 4: add the package containing the executable pg_config

Just need to add the package containing the executable pg_config. And pg_config is in postgresql-devel.

Summary

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?

Also, Read

Please Rate Our Solution to Motivate Us For Give Our Best

Leave a Comment