You shouldn't need to install psycopg2 here. In your setup.py file, psycopg2 was listed as a test_requires requirement. Was there a reason for taking it out of there and moving it up to here?