Pokeapi: missing dependency : llibpq-dev for postgresql

Created on 30 Oct 2016  路  4Comments  路  Source: PokeAPI/pokeapi

Complete output from command python setup.py egg_info:
running egg_info
creating pip-egg-info/psycopg2.egg-info
writing pip-egg-info/psycopg2.egg-info/PKG-INFO
writing top-level names to pip-egg-info/psycopg2.egg-info/top_level.txt
writing dependency_links to pip-egg-info/psycopg2.egg-info/dependency_links.txt
writing manifest file 'pip-egg-info/psycopg2.egg-info/SOURCES.txt'
warning: manifest_maker: standard file '-c' not found

Error: pg_config executable not found.

Please add the 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'.

----------------------------------------

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-fvuM_8/psycopg2/
Makefile:2: recipe for target 'install' failed
make: *** [install] Error 1

SOLUTION :
sudo apt-get install libpq-dev

Even after this , i had to use "sudo make install" to install all the packages

All 4 comments

On Mac you can use homebrew to install postgresql:

brew install postgresql

Should I install a specific version on Mac OS High Sierra? I'm having this error:

Collecting psycopg2==2.5.4 (from -r requirements.txt (line 20))
  Using cached psycopg2-2.5.4.tar.gz
    Complete output from command python setup.py egg_info:
    running egg_info
    creating pip-egg-info/psycopg2.egg-info
    writing pip-egg-info/psycopg2.egg-info/PKG-INFO
    writing top-level names to pip-egg-info/psycopg2.egg-info/top_level.txt
    writing dependency_links to pip-egg-info/psycopg2.egg-info/dependency_links.txt
    writing manifest file 'pip-egg-info/psycopg2.egg-info/SOURCES.txt'
    Error: could not determine PostgreSQL version from '10.3'

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/jn/d4n9dds55dz6t7l_8_clvdvm0000gn/T/pip-build-nMhz0a/psycopg2/

Worked changing requirements.txt line 20 to
psycopg2==2.7.1
Maybe I should PR it? Let me know.

No need for a PR which only updates a dependency.

Just leave your comment here so people can find your solution 馃槃

Thanks!

Was this page helpful?
0 / 5 - 0 ratings