Skip to content

"subprocess-exited-with-error" while installing psycopg_c #5325

Answered by luzfcb
TeleVoyant asked this question in Q&A
Discussion options

You must be logged in to vote

The error occurs because non-Python dependencies needed to install psycopg are missing.

psycopg is a library with several parts written in C language, making it possible to use the libpq library in Python; because of this, to install it using pip, you need the C library compilation toolkit (gcc, make, gnu binutils, and others ) and the source headers of the libpq library.

To solve the problem, simply install the NixOS equivalent packages, which provide the same software and libraries as the Debian build-essential and libpq-dev packages.

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by luzfcb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
2 participants
Converted from issue

This discussion was converted from issue #5324 on August 25, 2024 18:52.