Psycopg2: python setup.py egg_info failed with error code 1

Created on 28 May 2017  路  4Comments  路  Source: psycopg/psycopg2

I'm trying to install psycopg2==2.6.2 in my virtual environment with pip, but gives python setup.py egg_info failed error.
I tried to install using following command:

pip3 install psycopg2==2.6.2

I'm using python 3.5.2 on Ubuntu 16.04.02 64 bit.
setuptools is updated.
How to solve this ?

Most helpful comment

Here is the solution to solve error.

sudo apt-get install libpq-dev python-dev
pip install psycopg2

All 4 comments

@rofi93 I'm getting similar errors on Amazon Linux instances. Did you solve this?

@iamaaronknight Yeah. This solution solved my problem.

Here is the solution to solve error.

sudo apt-get install libpq-dev python-dev
pip install psycopg2

Here is the solution to solve error.

sudo apt-get install libpq-dev python-dev
pip install psycopg2

Aqui funcionou! Muito obrigado pela ajuda.

Was this page helpful?
0 / 5 - 0 ratings