From: | Daniele Varrazzo <daniele(dot)varrazzo(at)gmail(dot)com> |
---|---|
To: | Andrew Gould <andrewlylegould(at)gmail(dot)com> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: python3 module for accessing postgresql |
Date: | 2012-02-22 12:18:16 |
Message-ID: | CA+mi_8ZynNb9+niHbWH+GxpZgzMeJXo0KgWONKks3BbK+ZYeVA@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Wed, Feb 22, 2012 at 11:10 AM, Andrew Gould
<andrewlylegould(at)gmail(dot)com> wrote:
> Does anyone have any advice regarding the selection of a Python 3
> module for PostgreSQL? The modules I've found so far are psycopg2 and
> py-postgresql. My skill level with Python is fairly basic.
Psycopg works perfectly on Python 3 and is the most used module on
Python 2, making a straightforward upgrade path.
It's probably not packaged yet by distributions, but it's fairly easy
to compile it from source:
python3 setup.py build
sudo python3 setup.py install
You will need the libpq and the python-dev packages installed. If
pg_config is not found in standard locations, building will fail with
a clean description of the problem and how to specify the program
location.
If you have any problem, you may get further help on the psycopg mailing list.
Cheers,
-- Daniele
From | Date | Subject | |
---|---|---|---|
Next Message | Venkat Balaji | 2012-02-22 12:48:59 | Re: Measuring replication lag time |
Previous Message | Stuart Bishop | 2012-02-22 12:10:32 | Measuring replication lag time |