Reg: Installation problems in psycopg2
dave.hirschfeld at gmail.com
Tue Oct 14 14:45:07 CEST 2008
<raj.indian.08 <at> gmail.com> writes:
> I am trying to install psycopg2 in my windows machine for
> connecting with the PostgreSQL server.
> Since there is no binary executable*, I am trying to build my own
> - and I am facing this issue.
> cannot find -lpq
> collect2: ld returned 1 exit status
> error: command 'gcc' failed with exit status 1
> After a little bit of googling, I found that this can be solved
> by -L<directory name> while linking - but I am not specifically
> linking the code. Rather, I am installing by doing the following -
I don't think the lpq library comes (in the correct format) with the latest
versions of PostgreSQL hence I had the same problem which I never resolved.
You can get windows binaries from
More information about the Python-list