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 ?
@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.
Most helpful comment
Here is the solution to solve error.
sudo apt-get install libpq-dev python-dev
pip install psycopg2