Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

pyscopg-binary is not recommended for production workloads#2135

Answeredbytiangolo
billcrook asked this question inQuestions
Discussion options

Seehttps://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.

You must be logged in to vote

Thanks, it seems the main reason why it's not recommended is if the system underneath upgrades the versions of the libraries it bundles. Nevertheless if you upgrade the version of pyscopg-binary, it would come with the latest version that it was built with, so I would think that's comparable.

Also, I normally wouldn't want to suggest or encourage users to build dependencies from source, that's can cause so many problems. But I think people that want to set up this way would be perfectly able to do so as well. 🤓

Replies: 1 comment

Comment options

Thanks, it seems the main reason why it's not recommended is if the system underneath upgrades the versions of the libraries it bundles. Nevertheless if you upgrade the version of pyscopg-binary, it would come with the latest version that it was built with, so I would think that's comparable.

Also, I normally wouldn't want to suggest or encourage users to build dependencies from source, that's can cause so many problems. But I think people that want to set up this way would be perfectly able to do so as well. 🤓

You must be logged in to vote
0 replies
Answer selected bytiangolo
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Labels
None yet
2 participants
@billcrook@tiangolo
Converted from issue

This discussion was converted from issue#421 on January 22, 2026 20:55.


[8]ページ先頭

©2009-2026 Movatter.jp