

I/usr/include/postgresql -I/usr/include/postgresql/9.3/server -c psycopg/psycopgmodule.c -o build/temp.linux-x86_64-2.7/psycopg/psycopgmodule.o -Wdeclaration-after-statement X86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.7.3.2 (dt dec pq3 ext lo64)" -DPG_VERSION_NUM=90320 -DHAVE_LO64=1 -I/usr/include/python2.7 -I. Running setup.py (path:/tmp/pip_build_root/psycopg2/setup.py) egg_info for package psycopg2
#Ubuntu pip3 install install
Here's the output and install command that caused it: (django_env1) user:/home/projects/sample_project$ sudo pip install psycopg2ĭownloading psycopg2-2.7.3.2.tar.gz (425kB): 425kB downloaded I am very much a linux and django noob, so if this is a duplicate issue, please have mercy on me and leave a comment explaining why you are marking it as a duplicate as you do so. Trouble with psycopg2 in virtualenv python3 for use with Django I tried the solutions suggested in this stack exchange question:

I do that, and this point in the instructions, I get a "compilation failed" error. (django_env) $ sudo apt-get install libpq-dev python3-dev But this adapter have some package dependencies, so first

For this, install psycopg2 databaseĪdapter. Now, we need to configure postgreSQL so that it can communicate with our Django application.Trying to get a server ready for a django project and I'm running into some issues with setup for postgres.
