Use PSYCOPG2 to connect PostgreSQL download Psycopg2wgethttp://initd.org/psycopg/tarballs/PSYCOPG-2-7/psycopg2-2.7.1.tar.gzunzip the installation, or use PIP to installpip install psycopg2-2.7.1.tar.gz Error:Complete output from command python setup.py egg_info:running egg_infocreating pip-egg-info/psycopg2.egg-infowriting Pip-egg-info/psycopg2.egg-info/pkg-infowriting top-level names to Pip-egg-info/psycopg2.egg-info/top_ Level.txtwriting dependency_links to pip-egg-info/psycopg2.egg-info/dependency_links.txtwriting manifest file ' Pip-egg-info/psycopg2.egg-info/sources.txt ' Warning:manifest_maker:standard file '-C ' not founderror:pg_config Executable not found. Please add the directory containing pg_config to the Pathor specify the full executable path with the Option:python setup. PY Build_ext--pg-config/path/to/pg_config Build ... or with the pg_config option in ' Setup.cfg '. FIX: Yum install PostgreSQL -devel*
Python Install PostgreSQL driver