Search Postgresql Archives

Re: python3 module for accessing postgresql

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Feb 22, 2012 at 11:10 AM, Andrew Gould
<andrewlylegould@xxxxxxxxx> 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

-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux