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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With