Skip to content

pyscopg-binary is not recommended for production workloads #421

Closed

Description

@billcrook

See https://www.psycopg.org/docs/install.html#psycopg-vs-psycopg-binary

I was able to build in 3.8 slim by adding:

  • build-time dependencies:
    • libpq-dev='11.12-0+deb10u1'
    • build-essential='12.6'
  • run-time dependencies:
    • libpq5='11.12-0+deb10u1'

The build-time packages can be removed from the docker image after psycopg2 python package is installed.

Activity

  1. locked and limited conversation to collaborators on Jan 22, 2026
  2. converted this issue into a discussion #2135 on Jan 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions