Python – Error: could not determine PostgreSQL version from “10.4”

postgresqlpsycopg2python

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.4'

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-lR9u0X/psycopg2/

Does anyone know what's the issue? Trying to run pgadmin in virtualenv and can't figure out because of this error.

Best Answer

A higher version of psycopg2 fixed the issue for me, update your requirements.txt to:

...
psycopg2==2.7.5
...
Related Topic