moving companies : Computers : Programming : Languages : Python : Common Problems : Database Access : PostgreSQL

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

7 of 8 people (88%) answered Yes
Recently 5 of 6 people (83%) answered Yes

Entry

How do I connect to Postgresql on a Debian Linux box using Python from a Windows95 box?

May 20th, 2000 04:55
unknown unknown, Johann Spies, Case Van Horsen, Martin Skøtt


Pygres is available as a Debian package.  

$apt-cache search pygres
python-pygresql - PostgreSQL module for Python
zope-pygresqlda - A Zope Database Adapter for PostgreSQL

'apt-get install python-pygresql' should install it for you.

OR:

Use the Windows ODBC drivers for Postgresql
(ftp://ftp.postgresql.org/pub/odbc/latest/) and mxODBC for Python (
http://starship.python.net/crew/lemburg/mxODBC-1.1.1.zip ).

If you havent't got a Windows compiler then try and install the
postgreSQL ODBC driver on your windows box and use the PythoN-ODBC
binding to access your database.