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
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.