pycopg2 build problems

Wolodja Wentland wentland at cl.uni-heidelberg.de
Wed Sep 23 22:38:31 CEST 2009


On Wed, Sep 23, 2009 at 12:24 -0700, devaru wrote:
> I'm trying to install psycopg2 on my system. I followed the
> instruction in INSTALL file and gave the command
> python setup.py build
> running build
> running build_py
> running build_ext
> error: No such file or directory

I ran into this some days ago. The problem is not related to the
distribution you downloaded, but to missing information about PostgreSQL
itself.

IIRC the file in question is "/usr/bin/pg_config". The file is probably packaged
in some lib*-dev package on your distribution.

--- Debian example ---
$ apt-file search /usr/bin/pg_config
libpq-dev: /usr/bin/pg_config
--- snip ---

thanks for all the fish

    Wolodja
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 852 bytes
Desc: Digital signature
URL: <http://mail.python.org/pipermail/python-list/attachments/20090923/62621807/attachment.sig>


More information about the Python-list mailing list