Search code examples
pythonpsycopg2easy-install

Error installing psycopg2 on python 2.6


I'm trying to install psycopg2 on Python 2.6:

easy_install-2.6 psycopg2

but receive lots of compiling errors in psycopg/psycopgmodule.c But psycopg2 is installed and works fine on the same machine on Python 2.4. Any ideas?


Solution

    1. Add path to pg_config to $PATH
    2. Install python26-devel