How to install driver for postgresql

0 views
Skip to first unread message

Arnt

unread,
Jan 17, 2017, 7:04:00 AM1/17/17
to Anaconda - Public
Hello,

I run Python 2.7.12 |Anaconda 4.1.1 (64-bit) on Windows 7.

I want to read from a PostgreSQL database and needs the driver 
PostgreSQL -vector- (rw+): PostgreSQL/PostGIS

But how do I make that available for my Anaconda python?

I have run > conda install postgresql 
which installed postgresql   9.5.4  vc9_2  [vc9]  conda-forge

But still the driver is not listed as available: 

for i in range(0,ogr.GetDriverCount()):
    if 'SQL' in ogr.GetDriver(i).name:
        print ogr.GetDriver(i).name

only lists

SQLite
MSSQLSpatial

What else do I need to do in order for it to work?  

Best regards,
Arnt
Reply all
Reply to author
Forward
0 new messages