Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Trying to install psycopg2==2.6.1 failing due to egg_info?

I'm trying to run the following:

 pip install psycopg2==2.6.1

And I get the following error:

Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/mk/brv9xsjn14df5th28_k1nphw0000gn/T/pip-build-S1xSB8/psycopg2

Is there anyway to fix this? I've tried upgrading pip and upgrading setup-tools to no avail.

like image 781
Cisplatin Avatar asked Oct 30 '22 08:10

Cisplatin


1 Answers

I had the same problem with you too earlier.

I strongly suspect it's because you don't have your build dependencies installed.

If you're on Ubuntu, try this:

$ sudo apt-get build-dep python-psycopg2
$ sudo pip install psycopg2==2.6.1 
like image 190
Eddo Hintoso Avatar answered Nov 15 '22 03:11

Eddo Hintoso