Psycopg2 in a VirtualEnv
July 21, 2011
I tried to install psycopg2 in a VirtualEnv on debian, and got the following:
(perc360)drumcoder@drumcoder:~$ easy_install psycopg2 Searching for psycopg2 Reading <a href="http://pypi.python.org/simple/psycopg2/">http://pypi.python.org/simple/psycopg2/</a> Reading <a href="http://initd.org/psycopg/">http://initd.org/psycopg/</a> Reading <a href="http://initd.org/projects/psycopg2">http://initd.org/projects/psycopg2</a> Best match: psycopg2 2.4.2 Downloading <a href="http://initd.org/psycopg/tarballs/PSYCOPG-2-4/psycopg2-2.4.2.tar.gz">http://initd.org/psycopg/tarballs/PSYCOPG-2-4/psycopg2-2.4.2.tar.gz</a> Processing psycopg2-2.4.2.tar.gz Running psycopg2-2.4.2/setup.py -q bdist_egg --dist-dir /tmp/easy_install-HzKn-1/psycopg2-2.4.2/egg-dist-tmp-H2K9j7 Error: pg_config executable not found. Please …