Skip to content

Issue building wheel for psycopg2-binary 2.9.9 on Python 3.13 in virtual environment #126522

@mickfree

Description

@mickfree

Bug report

Bug description:

Description:

When installing dependencies from requirements.txt in a virtual environment with Python 3.13, the installation fails with a subprocess error during the wheel building process for psycopg2-binary version 2.9.9.

The error message indicates that pg_config is missing, which is required to build psycopg2 from source. It suggests adding the directory containing pg_config to the $PATH or specifying the full path.

Steps to Reproduce:

Install Python 3.13.
Set up a virtual environment and activate it.
Run pip install -r requirements.txt with psycopg2-binary==2.9.9 listed as a dependency.
Expected Behavior:

The dependencies, including psycopg2-binary, should install without any issues.

Actual Behavior:

The installation process fails with an error indicating that pg_config is missing, and the wheel for psycopg2-binary cannot be built.

Environment:

Python version: 3.13
psycopg2-binary version: 2.9.9
Operating System: windows 11

Additional Information:

74f3a0b3-2bb0-426f-885c-4d0132b70719

CPython versions tested on:

3.13

Operating systems tested on:

Windows

Metadata

Metadata

Assignees

No one assigned

    Labels

    type-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions