[Tutor] Python + PostGreSQL

Bill Campbell bill at celestial.net
Sat Apr 1 03:01:57 CEST 2006


On Fri, Mar 31, 2006, Srinivas Iyyer wrote:
>Dear group, 
>
>I want to connect python to postgresql. 
>My python dist. is 2.4.2
>My postgres: 8.1.2
>My system: Linux Enterprise Linux, Intel Xeon, 4GB
>RAM.
>
>I tried to install pygresql: version: 3.8, it failed
>throwing exception : Exception: pg_config tool is not
>available.
>
>I gave another try on google and Postgres site and
>found Pypgsql, PoPy and psycopg1. 

I think that psycopg is generally considered the preferred
package.  I have been using it with several systems including
Zope, and sqlobject.  So far I haven't tried psycopg2.

Bill
--
INTERNET:   bill at Celestial.COM  Bill Campbell; Celestial Software LLC
URL: http://www.celestial.com/  PO Box 820; 6641 E. Mercer Way
FAX:            (206) 232-9186  Mercer Island, WA 98040-0820; (206) 236-1676

A child can go only so far in life without potty training.  It is not
mere coincidence that six of the last seven presidents were potty
trained, not to mention nearly half of the nation's state legislators.
		-- Dave Barry


More information about the Tutor mailing list